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

Cypher: inline and multi-line comments are not recognized #1709

Closed
ggrossetie opened this issue Jun 7, 2021 · 0 comments · Fixed by #1710
Closed

Cypher: inline and multi-line comments are not recognized #1709

ggrossetie opened this issue Jun 7, 2021 · 0 comments · Fixed by #1710
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@ggrossetie
Copy link
Contributor

Name of the lexer

cypher

Code sample

In the following example, both /* x */ and /* y */ are inline comments.

RETURN point({longitude: 2.2105491 /* x */, latitude: 48.9250016 /* y */, srid: 4326}) AS home

http://rouge.jneen.net/v3.26.0/cypher/UkVUVVJOIHBvaW50KHtsb25naXR1ZGU6IDIuMjEwNTQ5MSAvKiB4ICovLCBsYXRpdHVkZTogNDguOTI1MDAxNiAvKiB5ICovLCBzcmlkOiA0MzI2fSkgQVMgaG9tZQ

In the following example, the Cypher query contains a multi-line comment (and returns 42):

RETURN /* drum
rolls */ 42

http://rouge.jneen.net/v3.26.0/cypher/UkVUVVJOIFwqCiovIDQyCg

@ggrossetie ggrossetie added the bugfix-request A request for a bugfix to be developed. label Jun 7, 2021
ggrossetie added a commit to ggrossetie/rouge that referenced this issue Jun 7, 2021
tancnle pushed a commit that referenced this issue Jan 23, 2022
* resolves #1709 support Cypher multi-line comments

* Remove empty line

* Add newline at the end of the file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant