aql-intellij-plugin icon indicating copy to clipboard operation
aql-intellij-plugin copied to clipboard

Wrong parameter highlighting within functions

Open konsultaner opened this issue 6 years ago • 1 comments

I added the plugin and I found this:

image

Shouldn't the parameters be colored differently?

konsultaner avatar Dec 07 '18 16:12 konsultaner

@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.

machak avatar Dec 07 '18 16:12 machak