From 883143e25ddf59b1b9c1962b4c6ea9dd66c1c0e3 Mon Sep 17 00:00:00 2001 From: Kamil Jakubus Date: Thu, 5 Sep 2024 17:48:44 +0200 Subject: [PATCH] parser: add qualified_name and object_access as case target Fixes (partially) #68 --- grammar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammar.js b/grammar.js index 2f75c25..6e5e94d 100644 --- a/grammar.js +++ b/grammar.js @@ -902,7 +902,7 @@ module.exports = grammar({ case_statement: ($) => seq( kw("CASE"), - $.identifier, + choice($.identifier, $.qualified_name, $.object_access), alias($.case_body, $.body), $._case_terminator ),