Przeglądaj źródła

Merge pull request #9 from sandyarmstrong/csx-directives-ms

csharp: allow styling #r/#load
Alexandru Dima 9 lat temu
rodzic
commit
e13d89495f
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/csharp.ts

+ 1 - 0
src/csharp.ts

@@ -166,6 +166,7 @@ export var language = <ILanguage> {
 		],
 		],
 
 
 		whitespace: [
 		whitespace: [
+			[/^[ \t\v\f]*#((r)|(load))(?=\s)/, 'directive.csx' ],
 			[/^[ \t\v\f]*#\w.*$/, 'namespace.cpp' ],
 			[/^[ \t\v\f]*#\w.*$/, 'namespace.cpp' ],
 			[/[ \t\v\f\r\n]+/, ''],
 			[/[ \t\v\f\r\n]+/, ''],
 			[/\/\*/,       'comment', '@comment' ],
 			[/\/\*/,       'comment', '@comment' ],