Skip to content

Commit

Permalink
Catch some static class in csharp lexer (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
steambap authored and alecthomas committed Oct 29, 2017
1 parent 5645597 commit 20d03ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lexers/csharp.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var CSharp = Register(MustNewLexer(
{`(global)(::)`, ByGroups(Keyword, Punctuation), nil},
{`(bool|byte|char|decimal|double|dynamic|float|int|long|object|sbyte|short|string|uint|ulong|ushort|var)\b\??`, KeywordType, nil},
{`(class|struct)(\s+)`, ByGroups(Keyword, Text), Push("class")},
{`\b([_a-zA-Z]\w*)(\.)`, ByGroups(NameClass, Punctuation), nil},
{`(namespace|using)(\s+)`, ByGroups(Keyword, Text), Push("namespace")},
{`@?[_a-zA-Z]\w*`, Name, nil},
},
Expand Down

0 comments on commit 20d03ba

Please sign in to comment.