mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-17 20:58:08 +02:00
Update groovy.xml (#807)
Added var as an alternative to def Now enum, trait, record, are types just like class and interface
This commit is contained in:
parent
555bb53ad9
commit
95cec3b2df
@ -41,10 +41,10 @@
|
||||
<rule pattern="(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">
|
||||
<token type="Keyword"/>
|
||||
</rule>
|
||||
<rule pattern="(abstract|const|enum|extends|final|implements|native|private|protected|public|static|strictfp|super|synchronized|throws|transient|volatile)\b">
|
||||
<rule pattern="(abstract|const|extends|final|implements|native|private|protected|public|static|strictfp|super|synchronized|throws|transient|volatile)\b">
|
||||
<token type="KeywordDeclaration"/>
|
||||
</rule>
|
||||
<rule pattern="(def|boolean|byte|char|double|float|int|long|short|void)\b">
|
||||
<rule pattern="(def|var|boolean|byte|char|double|float|int|long|short|void)\b">
|
||||
<token type="KeywordType"/>
|
||||
</rule>
|
||||
<rule pattern="(package)(\s+)">
|
||||
@ -56,7 +56,7 @@
|
||||
<rule pattern="(true|false|null)\b">
|
||||
<token type="KeywordConstant"/>
|
||||
</rule>
|
||||
<rule pattern="(class|interface|record)(\s+)">
|
||||
<rule pattern="(class|interface|enum|trait|record)(\s+)">
|
||||
<bygroups>
|
||||
<token type="KeywordDeclaration"/>
|
||||
<token type="Text"/>
|
||||
@ -132,4 +132,4 @@
|
||||
</rule>
|
||||
</state>
|
||||
</rules>
|
||||
</lexer>
|
||||
</lexer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user