File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
exist-core/src/main/antlr/org/exist/xquery/parser Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -722,6 +722,7 @@ exprSingle throws XPathException
722
722
| ( "typeswitch" LPAREN ) => typeswitchExpr
723
723
| ( "update" ( "replace" | "value" | "insert" | "delete" | "rename" )) => updateExpr
724
724
| ( "insert" ) => xqufInsertExpr
725
+ | ( "delete" ) => xqufDeleteExpr
725
726
| ( "copy" DOLLAR) => copyModifyExpr
726
727
| ( "invoke" "updating" ) => dynamicUpdFunCall
727
728
| orExpr
@@ -757,6 +758,16 @@ insertExpr throws XPathException
757
758
( "into" | "preceding" | "following" ) exprSingle
758
759
;
759
760
761
+ deleteExpr throws XPathException
762
+ :
763
+ "delete" exprSingle
764
+ ;
765
+
766
+ renameExpr throws XPathException
767
+ :
768
+ "rename" exprSingle "as"! exprSingle
769
+ ;
770
+
760
771
xqufInsertExpr throws XPathException
761
772
:
762
773
"insert"^ ( "node"! | "nodes"! ) exprSingle
@@ -778,14 +789,9 @@ insertExprTargetChoice throws XPathException
778
789
779
790
;
780
791
781
- deleteExpr throws XPathException
782
- :
783
- "delete" exprSingle
784
- ;
785
-
786
- renameExpr throws XPathException
792
+ xqufDeleteExpr throws XPathException
787
793
:
788
- "rename" exprSingle "as"! exprSingle
794
+ "delete"^ ( "node"! | "nodes"! ) exprSingle
789
795
;
790
796
791
797
copyModifyExpr throws XPathException
You can’t perform that action at this time.
0 commit comments