From c44337968e022f13be522868254ec6c3fb368382 Mon Sep 17 00:00:00 2001 From: phannebohm Date: Thu, 4 Apr 2024 16:26:48 +0200 Subject: [PATCH] Allow enumeration to have end comment --- syntaxes/metamodelica.tmGrammar.yaml | 7 +++++-- test/metamodelica/Enumeration.test.mo | 7 ++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/syntaxes/metamodelica.tmGrammar.yaml b/syntaxes/metamodelica.tmGrammar.yaml index 186ad32..9003d1c 100644 --- a/syntaxes/metamodelica.tmGrammar.yaml +++ b/syntaxes/metamodelica.tmGrammar.yaml @@ -18,11 +18,14 @@ patterns: # Storage ## Enumeration - - begin: \b(enumeration)\b\s*\( + - begin: \b(enumeration)\s*\( beginCaptures: 1: name: storage.type.enumeration - end: \)\s*; + end: \)\s*("([^"]|\\")*(?