From b67d792bb92fc8c8f2ef6a418e0ef76e1f4b3e86 Mon Sep 17 00:00:00 2001 From: azerr Date: Fri, 14 Oct 2022 18:53:08 +0200 Subject: [PATCH] Fix syntax coloration with element/attribute which can contains '-' Signed-off-by: azerr --- syntaxes/rnc.tmLanguage.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxes/rnc.tmLanguage.json b/syntaxes/rnc.tmLanguage.json index d137ec05..93edcfc3 100644 --- a/syntaxes/rnc.tmLanguage.json +++ b/syntaxes/rnc.tmLanguage.json @@ -28,7 +28,7 @@ "name": "entity.other.attribute.rnc" } }, - "match": "\\b(attribute)\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s*\\{", + "match": "\\b(attribute)\\s+([a-zA-Z][-a-zA-Z_0-9]*)\\s*\\{", "name": "meta.declaration.attribute.rnc" }, { @@ -43,7 +43,7 @@ "name": "entity.other.element.rnc" } }, - "match": "\\b(element)\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s*\\{", + "match": "\\b(element)\\s+([a-zA-Z][-a-zA-Z_0-9]*)\\s*\\{", "name": "meta.declaration.element.rnc" }, {