Skip to content

Commit

Permalink
Merge pull request #1403 from kuzudb/cypher-comment
Browse files Browse the repository at this point in the history
Change cypher comment rule
  • Loading branch information
acquamarin committed Mar 23, 2023
2 parents b5805d6 + 09427ad commit 956473d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/antlr4/Cypher.g4
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ WHITESPACE

Comment
: ( '/*' ( Comment_1 | ( '*' Comment_2 ) )* '*/' )
| ( '//' ( Comment_3 )* CR? ( LF | EOF ) )
| ( '--' ( Comment_3 )* CR? ( LF | EOF ) )
;

oC_LeftArrowHead
Expand Down
4 changes: 2 additions & 2 deletions test/test_files/tinysnb/match/node.test
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-NAME node1
-QUERY MATCH (a:person) RETURN COUNT(*)
-QUERY MATCH (a:person /* returns all person */) RETURN COUNT(*)
---- 1
8

-NAME node2
-QUERY MATCH (a:organisation) RETURN COUNT(*)
-QUERY MATCH (a:organisation) RETURN COUNT(*) --Returns the total number of nodes in organisation
---- 1
3
2 changes: 1 addition & 1 deletion third_party/antlr4_cypher/cypher_lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ CypherLexer::Initializer::Initializer() {
0x343, 0x3, 0x2, 0x2, 0x2, 0x345, 0x346, 0x3, 0x2, 0x2, 0x2, 0x346,
0x348, 0x3, 0x2, 0x2, 0x2, 0x347, 0x345, 0x3, 0x2, 0x2, 0x2, 0x348,
0x349, 0x7, 0x2c, 0x2, 0x2, 0x349, 0x35b, 0x7, 0x31, 0x2, 0x2, 0x34a,
0x34b, 0x7, 0x31, 0x2, 0x2, 0x34b, 0x34c, 0x7, 0x31, 0x2, 0x2, 0x34c,
0x34b, 0x7, 0x2f, 0x2, 0x2, 0x34b, 0x34c, 0x7, 0x2f, 0x2, 0x2, 0x34c,
0x350, 0x3, 0x2, 0x2, 0x2, 0x34d, 0x34f, 0x5, 0x101, 0x81, 0x2, 0x34e,
0x34d, 0x3, 0x2, 0x2, 0x2, 0x34f, 0x352, 0x3, 0x2, 0x2, 0x2, 0x350,
0x34e, 0x3, 0x2, 0x2, 0x2, 0x350, 0x351, 0x3, 0x2, 0x2, 0x2, 0x351,
Expand Down

0 comments on commit 956473d

Please sign in to comment.