[svn] r6765: vs-plugin/trunk:
Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/ScanLexer.n
Nemerle.Com...
IT
svnadmin at nemerle.org
Wed Oct 18 05:20:57 CEST 2006
Log:
Separated preprocessor keywords.
Author: IT
Date: Wed Oct 18 05:20:53 2006
New Revision: 6765
Modified:
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/ScanLexer.n
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/ScanTokenColor.n
vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleLanguageService.cs
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/ScanLexer.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/ScanLexer.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/ScanLexer.n Wed Oct 18 05:20:53 2006
@@ -510,9 +510,9 @@
skip();
if (pos >= reader.Length)
- (Token.Keyword("#"), TP.Keyword, C.Keyword, TR.MemberSelect)
+ (Token.Keyword("#"), TP.Keyword, C.Preprocessor, TR.MemberSelect)
else
- (GetPreprocessorToken(), TP.Keyword, C.Keyword, TR.None)
+ (GetPreprocessorToken(), TP.Keyword, C.Preprocessor, TR.None)
| '/' =>
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/ScanTokenColor.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/ScanTokenColor.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/ScanTokenColor.n Wed Oct 18 05:20:53 2006
@@ -25,5 +25,7 @@
| QuotationNumber = 15
| QuotationOperator = 16
| QuotationStringEx = 17
+
+ | Preprocessor = 18
}
}
Modified: vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleLanguageService.cs
==============================================================================
--- vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleLanguageService.cs (original)
+++ vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleLanguageService.cs Wed Oct 18 05:20:53 2006
@@ -100,7 +100,9 @@
new NemerleColorableItem("<[ String ]>", 0, COLORINDEX.CI_MAROON, Color.FromArgb(163, 21, 21)),
new NemerleColorableItem("<[ Number ]>", 0),
new NemerleColorableItem("<[ Operator ]>", 0),
- new NemerleColorableItem("<[ StringEx ]>", 0, COLORINDEX.CI_MAROON, Color.FromArgb(143, 44, 182))
+ new NemerleColorableItem("<[ StringEx ]>", 0, COLORINDEX.CI_MAROON, Color.FromArgb(143, 44, 182)),
+
+ new NemerleColorableItem("Preprocessor Keyword", COLORINDEX.CI_BLUE, Color.FromArgb( 0, 0, 200)),
};
public override void Dispose()
More information about the svn
mailing list