Skip to content

Commit 3a29711

Browse files
Automated update of artifacts to neo4j version 2025.09.0 (#569)
1 parent 2939cd3 commit 3a29711

4 files changed

Lines changed: 11502 additions & 11238 deletions

File tree

.changeset/modern-parrots-sin.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@neo4j-cypher/language-support': patch
3+
'@neo4j-cypher/lint-worker': patch
4+
---
5+
6+
Update grammar and semantic analysis to version 2025.09

packages/language-support/src/antlr-grammar/Cypher25Parser.g4

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,9 +640,19 @@ reduceExpression
640640
;
641641

642642
allReduceExpression
643+
: allReduceExpressionValidArguments | allReduceExpressionInvalidArguments
644+
;
645+
646+
allReduceExpressionValidArguments
643647
: ALLREDUCE LPAREN variable EQ expression COMMA variable IN expression BAR expression COMMA expression RPAREN
644648
;
645649

650+
// Captures the case where the arguments are not valid, e.g. missing the variable or the bar expression.
651+
// This will be mapped to a FunctionInvocation which will throw a useful error during Semantic Analysis.
652+
allReduceExpressionInvalidArguments
653+
: ALLREDUCE LPAREN expression ((COMMA | BAR) expression)* RPAREN
654+
;
655+
646656
listItemsPredicate
647657
: (
648658
ALL
@@ -656,6 +666,7 @@ normalizeFunction
656666
: NORMALIZE LPAREN expression (COMMA normalForm)? RPAREN
657667
;
658668

669+
659670
vectorFunction
660671
: VECTOR LPAREN vectorValue = expression COMMA dimension = expression COMMA vectorCoordinateType RPAREN
661672
;
@@ -916,6 +927,7 @@ showCommand
916927
: SHOW (
917928
showAliases
918929
| showConstraintCommand
930+
| showCurrentGraphTypeCommand
919931
| showCurrentUser
920932
| showDatabase
921933
| showFunctions
@@ -973,6 +985,7 @@ composableShowCommandClauses
973985
: SHOW (
974986
showIndexCommand
975987
| showConstraintCommand
988+
| showCurrentGraphTypeCommand
976989
| showFunctions
977990
| showProcedures
978991
| showSettings
@@ -1022,6 +1035,10 @@ showConstraintsEnd
10221035
: constraintToken showCommandYield? composableCommandClauses?
10231036
;
10241037

1038+
showCurrentGraphTypeCommand
1039+
: CURRENT GRAPH TYPE showCommandYield? composableCommandClauses?
1040+
;
1041+
10251042
showProcedures
10261043
: (PROCEDURE | PROCEDURES) executableBy? showCommandYield? composableCommandClauses?
10271044
;

0 commit comments

Comments
 (0)