From 5bb2b912f585dece72b40b1ba52514fef43886cb Mon Sep 17 00:00:00 2001 From: TheDudeFromCI Date: Sun, 14 Jan 2024 01:15:43 -0700 Subject: [PATCH] Fixed dashed variable names --- syntaxes/gbnf.tmLanguage.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxes/gbnf.tmLanguage.json b/syntaxes/gbnf.tmLanguage.json index 9303d14..c17cd75 100644 --- a/syntaxes/gbnf.tmLanguage.json +++ b/syntaxes/gbnf.tmLanguage.json @@ -14,7 +14,7 @@ "repository": { "variables": { "name": "variable.language", - "match": "\\b[a-zA-Z_][a-zA-Z_0-9]*\\b(?=\\s*::=)" + "match": "\\b[a-zA-Z\-][a-zA-Z\-0-9]*\\b(?=\\s*::=)" }, "assignment": { "name": "keyword.operator.assignment", @@ -31,7 +31,7 @@ }, "identifiers": { "name": "variable.identifier", - "match": "\\b[a-zA-Z_][a-zA-Z_0-9]*\\b" + "match": "\\b[a-zA-Z\-][a-zA-Z\-0-9]*\\b" }, "comments": { "name": "comment.line",