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

Support for neo4j cypher-shell :param or => operator #88

Open
s-drevs opened this issue Dec 13, 2023 · 0 comments
Open

Support for neo4j cypher-shell :param or => operator #88

s-drevs opened this issue Dec 13, 2023 · 0 comments

Comments

@s-drevs
Copy link

s-drevs commented Dec 13, 2023

We heavily use cypher-shell param which need to be at the start of a cypher file. The "normal" syntax is not supported by this plugin as it breaks the syntax highlight and formatting for the whole file.

Example to break syntax highlight and formatting:

:param {csvfile:"file:///sample.csv", property:1};

Would be nice if this plugin could support this type of syntax.

Screenshot where syntax highlight and formatting break because of param

If that's not possible - because it's probably a neo4j, cypher-shell only thing - would you please add a formatting rule for the arrow operator? The arrow operator consists of two characters that are handled independently which breaks the script each time we use format document.

Example:

// before format document
:param csvfile => "file:///sample.csv"
:param property => 1;

// after format document
:param csvfile = > "file:///sample.csv"
:param property = > 1;

Screenshot with syntax highlight and formatting

If it would stay as in the first example, the script will still work in cypher-shell and we get to use format document freely without fixing this one small thing each time and of course syntax highlighting.

Nonetheless - thanks for this great plugin!

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

1 participant