Skip to content

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

Closed
@ggrossetie

Description

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

Metadata

Assignees

No one assigned

    Labels

    bugfix-requestA request for a bugfix to be developed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions