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

AQL: Unclosed multi-line comments are allowed #2058

Merged
merged 1 commit into from
Sep 18, 2019

Conversation

Simran-B
Copy link
Contributor

AQL does not require multi-line comments to be closed:

/* unterminated
multi-line
comment
RETURN 1

ArangoDB simply treats everything until the end of the query string as comment in that case. This PR adjusts Prism to highlight such comments correctly.

Note that the test for this needs to be last, as everything past it will be treated as part of this comment.

@RunDevelopment RunDevelopment merged commit f3c6ba5 into PrismJS:master Sep 18, 2019
@RunDevelopment
Copy link
Member

Thank you for contributing!

Simran-B added a commit to Simran-B/prism that referenced this pull request Oct 14, 2019
@Simran-B Simran-B deleted the aql-unclosed-comments branch October 16, 2019 09:48
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

Successfully merging this pull request may close these issues.

2 participants