aql-intellij-plugin
aql-intellij-plugin copied to clipboard
Wrong parameter highlighting within functions
I added the plugin and I found this:
Shouldn't the parameters be colored differently?
@konsultaner they should.
I am fairly new to ArangoDB/AQL world (also to Intellij lexer/parser part) and actually one of the first versions of the parser was handling it correctly.
Then I found out that AQL is quite "complex", in a sense that you can have sub queries/expressions etc. added to for example array definitions (like in your case), , function parameters etc.
so I had to "relax" the grammar to accept those cases.
I did this quite recently ("grammar relaxing" part) just to avoid error markers (which would confuse users).
I have some grammar improvements pending, so it is still work in progress.