From b4d5a5ed84d11251504cbe2514e75c99341b5b47 Mon Sep 17 00:00:00 2001 From: Felipe Zorzo Date: Sat, 25 May 2024 21:42:43 -0300 Subject: [PATCH] fix(grammar): Skip XMLTABLE_OPTIONS node because all components are optional --- .../sonar/plugins/plsqlopen/api/SingleRowSqlFunctionsGrammar.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zpa-core/src/main/kotlin/org/sonar/plugins/plsqlopen/api/SingleRowSqlFunctionsGrammar.kt b/zpa-core/src/main/kotlin/org/sonar/plugins/plsqlopen/api/SingleRowSqlFunctionsGrammar.kt index bc328447..2a21f347 100644 --- a/zpa-core/src/main/kotlin/org/sonar/plugins/plsqlopen/api/SingleRowSqlFunctionsGrammar.kt +++ b/zpa-core/src/main/kotlin/org/sonar/plugins/plsqlopen/api/SingleRowSqlFunctionsGrammar.kt @@ -225,7 +225,7 @@ enum class SingleRowSqlFunctionsGrammar : GrammarRuleKey { b.rule(XMLTABLE_OPTIONS).define( b.optional(XML_PASSING_CLAUSE), b.optional(RETURNING, SEQUENCE, BY, REF), - b.optional(COLUMNS, XML_TABLE_COLUMN, b.zeroOrMore(COMMA, XML_TABLE_COLUMN))) + b.optional(COLUMNS, XML_TABLE_COLUMN, b.zeroOrMore(COMMA, XML_TABLE_COLUMN))).skip() b.rule(XMLTABLE_EXPRESSION).define( XMLTABLE, LPARENTHESIS,