summaryrefslogtreecommitdiff
path: root/context/data/vscode/extensions/context/syntaxes/context-syntax-bnf.json
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-06-14 18:53:48 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-06-14 18:53:48 +0200
commitc3e821627fba8ecf4342582ed62e75c5ad36afc0 (patch)
treecc1bee237f26ac5a5e2325a6869a8375e372aa4f /context/data/vscode/extensions/context/syntaxes/context-syntax-bnf.json
parent36ee3b791e253a00877a7b25e2d94b1dfc90a174 (diff)
downloadcontext-c3e821627fba8ecf4342582ed62e75c5ad36afc0.tar.gz
2019-06-14 17:56:00
Diffstat (limited to 'context/data/vscode/extensions/context/syntaxes/context-syntax-bnf.json')
-rw-r--r--context/data/vscode/extensions/context/syntaxes/context-syntax-bnf.json74
1 files changed, 74 insertions, 0 deletions
diff --git a/context/data/vscode/extensions/context/syntaxes/context-syntax-bnf.json b/context/data/vscode/extensions/context/syntaxes/context-syntax-bnf.json
new file mode 100644
index 000000000..d5251624c
--- /dev/null
+++ b/context/data/vscode/extensions/context/syntaxes/context-syntax-bnf.json
@@ -0,0 +1,74 @@
+{
+ "name" : "context.bnf",
+ "patterns" : [
+ {
+ "include" : "#term"
+ },
+ {
+ "include" : "#text_single"
+ },
+ {
+ "include" : "#text_reverse"
+ },
+ {
+ "include" : "#becomes"
+ },
+ {
+ "include" : "#extra"
+ }
+ ],
+ "repository" : {
+ "becomes" : {
+ "match" : "::=",
+ "name" : "context.operator.symbol.becomes.bnf"
+ },
+ "extra" : {
+ "match" : "|",
+ "name" : "context.extra.symbol.extra.bnf"
+ },
+ "term" : {
+ "captures" : {
+ "1" : {
+ "name" : "context.command.term.open.bnf"
+ },
+ "2" : {
+ "name" : "context.text.term.text.bnf"
+ },
+ "3" : {
+ "name" : "context.command.term.close.bnf"
+ }
+ },
+ "match" : "(<)(([a-zA-Z][a-zA-Z0-9\u005C-]*))(>)"
+ },
+ "text_double" : {
+ "captures" : {
+ "1" : {
+ "name" : "context.special.doublequoted.open.bnf"
+ },
+ "2" : {
+ "name" : "context.text.doublequoted.text.bnf"
+ },
+ "3" : {
+ "name" : "context.special.doublequoted.close.bnf"
+ }
+ },
+ "match" : "(\u0022)([a-zA-Z0-9]|\u005C~|}|\u005C||{|`|_|\u005C^|\u005C]|\u005C\u005C|\u005C[|@|\u005C?|>|=|<|;|:|/|\u005C.|\u005C-|\u005C-|,|\u005C+|\u005C*|\u005C)|\u005C(|\u005C&|\u005C%|\u005C$|#|\u005C!| )(\u0022)"
+ },
+ "text_single" : {
+ "captures" : {
+ "1" : {
+ "name" : "context.special.singlequoted.open.bnf"
+ },
+ "2" : {
+ "name" : "context.text.singlequoted.text.bnf"
+ },
+ "3" : {
+ "name" : "context.special.singlequoted.close.bnf"
+ }
+ },
+ "match" : "(')([a-zA-Z0-9]|\u005C~|}|\u005C||{|`|_|\u005C^|\u005C]|\u005C\u005C|\u005C[|@|\u005C?|>|=|<|;|:|/|\u005C.|\u005C-|\u005C-|,|\u005C+|\u005C*|\u005C)|\u005C(|\u005C&|\u005C%|\u005C$|#|\u005C!| )(')"
+ }
+ },
+ "scopeName" : "source.context.bnf",
+ "version" : "1.0.0"
+} \ No newline at end of file