From 333a784f8f34d2fb16e6660a12acb9d3b30cdb79 Mon Sep 17 00:00:00 2001 From: Michael Kay Date: Thu, 9 Jan 2025 21:54:23 +0000 Subject: [PATCH] Fix switch syntax ambiguity --- specifications/grammar-40/xpath-grammar.xml | 8 ++++---- specifications/xquery-40/src/expressions.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specifications/grammar-40/xpath-grammar.xml b/specifications/grammar-40/xpath-grammar.xml index a44c2aa95..66dc4ca4b 100644 --- a/specifications/grammar-40/xpath-grammar.xml +++ b/specifications/grammar-40/xpath-grammar.xml @@ -1235,9 +1235,7 @@ VersionDecl ::= "xquery" (("encoding" StringLiteral) | ("version" StringLiteral switch - - - + @@ -1246,7 +1244,9 @@ VersionDecl ::= "xquery" (("encoding" StringLiteral) | ("version" StringLiteral ( - + + + ) diff --git a/specifications/xquery-40/src/expressions.xml b/specifications/xquery-40/src/expressions.xml index dd0bfe35e..0759d30f1 100644 --- a/specifications/xquery-40/src/expressions.xml +++ b/specifications/xquery-40/src/expressions.xml @@ -20925,7 +20925,7 @@ switch ($animal) true: