Skip to content

Commit 0887f71

Browse files
authored
Merge pull request #94 from fschneidereit/master
C# syntax highlighting: added support for the nameof keyword.
2 parents 91eb4bc + 8fe5221 commit 0887f71

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

ICSharpCode.AvalonEdit/Highlighting/Resources/CSharp-Mode.xshd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
<Color name="GetSetAddRemove" foreground="SaddleBrown" exampleText="int Prop { get; set; }"/>
2828
<Color name="TrueFalse" fontWeight="bold" foreground="DarkCyan" exampleText="b = false; a = true;" />
2929
<Color name="TypeKeywords" fontWeight="bold" foreground="DarkCyan" exampleText="if (x is int) { a = x as int; type = typeof(int); size = sizeof(int); c = new object(); }"/>
30-
30+
<Color name="SemanticKeywords" fontWeight="bold" foreground="DarkCyan" exampleText="if (args == null) throw new ArgumentNullException(nameof(args));" />
31+
3132
<Property name="DocCommentMarker" value="///" />
3233

3334
<RuleSet name="CommentMarkerSet">
@@ -280,7 +281,11 @@
280281
<Word>null</Word>
281282
<Word>value</Word>
282283
</Keywords>
283-
284+
285+
<Keywords color="SemanticKeywords">
286+
<Word>nameof</Word>
287+
</Keywords>
288+
284289
<!-- Mark previous rule-->
285290
<Rule color="MethodCall">
286291
\b

0 commit comments

Comments
 (0)