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

Allow comments in Cypher statements #2984

Closed
sapalli2989 opened this issue Mar 2, 2024 · 4 comments
Closed

Allow comments in Cypher statements #2984

sapalli2989 opened this issue Mar 2, 2024 · 4 comments

Comments

@sapalli2989
Copy link
Contributor

sapalli2989 commented Mar 2, 2024

Please allow parsing of cypher statements with // comments without errors. This is useful for documentation purposes, especially when cypher statements are 1) embedded as multi-line string within code 2) saved in separate .cypher file 3) copy/pasted from code.

Resources

@andyfengHKU
Copy link
Contributor

Hi @sapalli2989, thanks for pointing out.

If you are using v0.3.0, we already support comment with /* */, e.g.

MATCH (a) RETURN COUNT(*) /* this is a comment*/ ;

I'll add the support for // comment as well.

@sapalli2989
Copy link
Contributor Author

sapalli2989 commented Mar 3, 2024

@andyfengHKU Great, appreciated!

@andyfengHKU
Copy link
Contributor

Hi @sapalli2989, sorry for the late response. Had been travelling in the past week.

The // comment is added in PR #3026

@sapalli2989
Copy link
Contributor Author

Thanks for the info @andyfengHKU , hope you had a good time!

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