Skip to content

Commit

Permalink
Missing 'as' and 'in' keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
glaforge committed Sep 24, 2017
1 parent b83a015 commit cce6c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexers/groovy.go
Expand Up @@ -24,7 +24,7 @@ var Groovy = Register(MustNewLexer(
{`//.*?\n`, CommentSingle, nil},
{`/\*.*?\*/`, CommentMultiline, nil},
{`@[a-zA-Z_][\w.]*`, NameDecorator, nil},
{`(assert|break|case|catch|continue|default|do|else|finally|for|if|goto|instanceof|new|return|switch|this|throw|try|while|in|as)\b`, Keyword, nil},
{`(as|assert|break|case|catch|continue|default|do|else|finally|for|if|in|goto|instanceof|new|return|switch|this|throw|try|while|in|as)\b`, Keyword, nil},
{`(abstract|const|enum|extends|final|implements|native|private|protected|public|static|strictfp|super|synchronized|throws|transient|volatile)\b`, KeywordDeclaration, nil},
{`(def|boolean|byte|char|double|float|int|long|short|void)\b`, KeywordType, nil},
{`(package)(\s+)`, ByGroups(KeywordNamespace, Text), nil},
Expand Down

0 comments on commit cce6c8e

Please sign in to comment.