From 6593326d9959339e57a2d8ccbde220c35bc56890 Mon Sep 17 00:00:00 2001 From: Novus Nota <68142933+novusnota@users.noreply.github.com> Date: Tue, 17 Sep 2024 08:38:37 +0200 Subject: [PATCH] feat: update TextMate grammar for Tact 1.5.0 (#394) --- grammars/grammar-tact.json | 39 ++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/grammars/grammar-tact.json b/grammars/grammar-tact.json index 615ef7dc..073d3186 100644 --- a/grammars/grammar-tact.json +++ b/grammars/grammar-tact.json @@ -104,7 +104,7 @@ "patterns": [ { "comment": "FunC identifier", - "match": "((?:[a-zA-Z_\\'\\?!&]|::)(?:[a-zA-Z0-9_\\'\\?!&]|::)*)", + "match": "(.*?)", "name": "entity.name.function.func.tact" } ], @@ -138,9 +138,40 @@ } } }, + { + "comment": "Asm arrangements", + "begin": "(?", + "name": "keyword.operator.mapsto.tact" + }, + { + "match": "\\b([0-9]*)\\b", + "name": "constant.numeric.decimal.tact" + } + ], + "end": "\\)", + "endCaptures": { + "0": { + "name": "punctuation.brackets.round.tact" + } + } + }, { "comment": "Fallback match", - "match": "(?