vscode-ebnf

EBNF for Visual Studio Code
Mirror of https://github.com/Jamozed/vscode-ebnf
git clone http://git.omkov.net/vscode-ebnf
Log | Tree | Refs | README | LICENCE | Download

AuthorJamozed <[email protected]>
Date2022-02-22 00:07:15
Commit4b779628b300f71d56558030bf698d9fe190b695
Parentd6cb20d9742a26b489d9bea0ce1198bf34cd9824

Fix rules with spaces not being matched

Diffstat

M package.json | 2 +-
M syntaxes/ebnf.tmLanguage.json | 2 +-

2 files changed, 2 insertions, 2 deletions

diff --git a/package.json b/package.json
index 5f8996a..69040f5 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
 	"name": "vscode-ebnf",
-	"version": "1.0.3",
+	"version": "1.0.4",
 	"publisher": "OMKOV",
 	"engines": { "vscode": "^1.0.0" },
 	"license": "OLPE",
diff --git a/syntaxes/ebnf.tmLanguage.json b/syntaxes/ebnf.tmLanguage.json
index c931bd3..23d9a63 100644
--- a/syntaxes/ebnf.tmLanguage.json
+++ b/syntaxes/ebnf.tmLanguage.json
@@ -18,7 +18,7 @@
 			]
 		},
 		"rule": {
-			"begin": "([a-zA-Z_][a-zA-Z0-9_]*)\\s*(=)",
+			"begin": "([a-zA-Z_][a-zA-Z0-9_ ]*)\\s*(=)",
 			"end": "(;)",
 			"beginCaptures": {
 				"1": { "name": "entity.name.class.ebnf" },