Details
Description
For all Java keywords defined in:
http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html
And Groovy additions, should not recieve semantic highlighting in map keys
For example:
def m = [
continue: '',
public: '',
private: '',
protected: '',
const: '',
switch: '',
break: '',
continue: '',
default: '',
for: '',
while: '',
in: '',
do: '',
]
Currently renders all keys as if they were statements. This is confusing and cluttering for DSLs and general purpose Groovy code.
This is a bit tricky to solve. Currently, syntax highlighting works lexically, but semantic highlighting works on a parsed and resolved AST. This means that the keywords above are highlighted no matter where they are in the code. Switching over to using semantic highlighting for these keywords would not work since the Groovy AST does not keep track of the source locations for keywords.