-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
AQL: More pseudo keywords #2055
Conversation
This is one of the most common types of false negatives in Prism, so I wouldn't worry too much about it. As you said, it's unlikely to occur. Regarding I think that language definition is ready to merge but we'll have to adjust the tests before that. Please add your new keywords to the keyword test. (More infos on test files.) |
Cool, will add the tests, probably tomorrow. |
@RunDevelopment I added some more tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
queryShowcase test query was taken from PrismJS/prism#2055 (reference from Simran-B)
queryShowcase test query was taken from PrismJS/prism#2055 (reference from Simran-B)
As a follow up to #2047, I want to add some more pseudo-keywords:
COLLECT … WITH COUNT INTO …
array[* FILTER CURRENT.value == 1 RETURN CURRENT]
COLLECT … INTO … KEEP …
FOR v IN 1..5 OUTBOUND "verts/1" edges PRUNE conditions …
I tried to avoid false-positives by detecting
COUNT
based on the surrounding keywords, but this is in exchange for false-negatives (it won't be detected if comments are inserted in between, which is unlikely however).For
OPTIONS
I attempted something similar (it must be followed by an object literal, variables/expressions are not excepted in this position) , but I'm not sure if it's worth it. Let me know what you think.