11// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
2- //
2+ //
33// Permission is hereby granted, free of charge, to any person obtaining a copy of this
44// software and associated documentation files (the "Software"), to deal in the Software
55// without restriction, including without limitation the rights to use, copy, modify, merge,
66// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
77// to whom the Software is furnished to do so, subject to the following conditions:
8- //
8+ //
99// The above copyright notice and this permission notice shall be included in all copies or
1010// substantial portions of the Software.
11- //
11+ //
1212// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
1313// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
1414// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
@@ -24,24 +24,24 @@ namespace ICSharpCode.AvalonEdit.Highlighting
2424 static class Resources
2525 {
2626 static readonly string Prefix = typeof ( Resources ) . FullName + "." ;
27-
27+
2828 public static Stream OpenStream ( string name )
2929 {
3030 Stream s = typeof ( Resources ) . Assembly . GetManifestResourceStream ( Prefix + name ) ;
3131 if ( s == null )
3232 throw new FileNotFoundException ( "The resource file '" + name + "' was not found." ) ;
3333 return s ;
3434 }
35-
35+
3636 internal static void RegisterBuiltInHighlightings ( HighlightingManager . DefaultHighlightingManager hlm )
3737 {
3838 hlm . RegisterHighlighting ( "XmlDoc" , null , "XmlDoc.xshd" ) ;
3939 hlm . RegisterHighlighting ( "C#" , new [ ] { ".cs" } , "CSharp-Mode.xshd" ) ;
40-
40+
4141 hlm . RegisterHighlighting ( "JavaScript" , new [ ] { ".js" } , "JavaScript-Mode.xshd" ) ;
4242 hlm . RegisterHighlighting ( "HTML" , new [ ] { ".htm" , ".html" } , "HTML-Mode.xshd" ) ;
4343 hlm . RegisterHighlighting ( "ASP/XHTML" , new [ ] { ".asp" , ".aspx" , ".asax" , ".asmx" , ".ascx" , ".master" } , "ASPX.xshd" ) ;
44-
44+
4545 hlm . RegisterHighlighting ( "Boo" , new [ ] { ".boo" } , "Boo.xshd" ) ;
4646 hlm . RegisterHighlighting ( "Coco" , new [ ] { ".atg" } , "Coco-Mode.xshd" ) ;
4747 hlm . RegisterHighlighting ( "CSS" , new [ ] { ".css" } , "CSS-Mode.xshd" ) ;
@@ -51,6 +51,7 @@ internal static void RegisterBuiltInHighlightings(HighlightingManager.DefaultHig
5151 hlm . RegisterHighlighting ( "PowerShell" , new [ ] { ".ps1" , ".psm1" , ".psd1" } , "PowerShell.xshd" ) ;
5252 hlm . RegisterHighlighting ( "PHP" , new [ ] { ".php" } , "PHP-Mode.xshd" ) ;
5353 hlm . RegisterHighlighting ( "TeX" , new [ ] { ".tex" } , "Tex-Mode.xshd" ) ;
54+ hlm . RegisterHighlighting ( "TSQL" , new [ ] { ".sql" } , "TSQL-Mode.xshd" ) ;
5455 hlm . RegisterHighlighting ( "VB" , new [ ] { ".vb" } , "VB-Mode.xshd" ) ;
5556 hlm . RegisterHighlighting ( "XML" , ( ".xml;.xsl;.xslt;.xsd;.manifest;.config;.addin;" +
5657 ".xshd;.wxs;.wxi;.wxl;.proj;.csproj;.vbproj;.ilproj;" +
0 commit comments