neo4j / cypher-language-support

Neo4j's Cypher Language support
https://neo4j.github.io/cypher-language-support/
Apache License 2.0
31 stars 5 forks source link

Enables Cypher highlighting to be embedded in some programming languages #222

Closed ncordon closed 2 months ago

ncordon commented 3 months ago

Adds highlighting within embedded strings in all the languages we have an official driver for:

It works with multiline strings which include a //cypher or /*cypher*/ comment and with single line strings with a //cypher comment:

String a = """// cypher

MATCH (n)
"""

String b = """/* cypher */

MATCH (n)
"""

String c = "//cypher MATCH (n)"

Also with templated strings in js/ts:

/*cypher*/`
MATCH (n)

This is similar approach to https://marketplace.visualstudio.com/items?itemName=qufiwefefwoyn.inline-sql-syntax

changeset-bot[bot] commented 3 months ago

⚠️ No Changeset found

Latest commit: 4af90d624a6ff64c84ff366cc51444cc8c9c7eba

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

OskarDamkjaer commented 2 months ago

I think this change would warrant a changeset as well!

ncordon commented 2 months ago

The changeset I'd prefer to introduce it in another pr because I'll have to rewrite the README, fix a detail in the release job, etc.

OskarDamkjaer commented 2 months ago

Looking slick!! 💯