From e8c5e88eece91a9c1d9157be245b4b76b241c57b Mon Sep 17 00:00:00 2001 From: Yvan Lussaud Date: Wed, 21 Feb 2024 14:26:26 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20=C2=A0#89=20When=20to=20expression=20st?= =?UTF-8?q?atements=20follows=20each=20other=20the=20second=20one=20is=20n?= =?UTF-8?q?ot=20colored=20by=20the=20text=20mate=20grammar.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../grammar/acceleo.tmLanguage.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/org.eclipse.acceleo.aql.tm/grammar/acceleo.tmLanguage.json b/plugins/org.eclipse.acceleo.aql.tm/grammar/acceleo.tmLanguage.json index 0677567ea..795902c0f 100644 --- a/plugins/org.eclipse.acceleo.aql.tm/grammar/acceleo.tmLanguage.json +++ b/plugins/org.eclipse.acceleo.aql.tm/grammar/acceleo.tmLanguage.json @@ -757,6 +757,9 @@ { "include": "#statement-expression-tag-close" }, + { + "include": "#statement-expression-tag-double" + }, { "include": "#statement-expression-expression" } @@ -768,10 +771,13 @@ }, "statement-expression-expression": { "name": "meta.expression.aql", - "begin": "(?<=\\[)", - "end": "(?=/\\])" + "match": "(?<=\\[).*?(?=/\\])" }, "statement-expression-tag-close": { + "name": "keyword.other.statement.expression.acceleo", + "match": "/\\]\\[(?!/)" + }, + "statement-expression-tag-double": { "name": "keyword.other.statement.expression.acceleo", "match": "/\\]" }