From 5a3872a2fb665d618bf703404ae67eafea31b6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20M=20G=C3=B3mez?= Date: Tue, 26 Mar 2024 10:29:19 +0000 Subject: [PATCH] improves emit colouring fixes #53 (#56) --- syntaxes/nim.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/syntaxes/nim.json b/syntaxes/nim.json index f638983..ebd838b 100644 --- a/syntaxes/nim.json +++ b/syntaxes/nim.json @@ -259,6 +259,26 @@ } ] }, + { + "begin": "\\{\\.emit:\\s*\\[", + "beginCaptures": { + "0": { + "name": "punctuation.section.embedded.begin.nim" + } + }, + "end": "\\]\\.", + "endCaptures": { + "0": { + "name": "punctuation.section.embedded.end.nim" + } + }, + "name": "meta.embedded.block.nim", + "patterns": [ + { + "include": "source.nim" + } + ] + }, { "begin": "\\{\\.", "beginCaptures": {