Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong parameter highlighting within functions #3

Open
konsultaner opened this issue Dec 7, 2018 · 1 comment
Open

Wrong parameter highlighting within functions #3

konsultaner opened this issue Dec 7, 2018 · 1 comment

Comments

@konsultaner
Copy link

I added the plugin and I found this:

image

Shouldn't the parameters be colored differently?

@machak
Copy link
Collaborator

machak commented Dec 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants