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

vscode-ebnf/syntaxes/ebnf.mdCodeblock.json (29 lines, 553 B) -rw-r--r-- file download

ad4a2a8 Drew Youngwerth 2022-11-21 19:04:44
0
{
3985c5a Jamozed 2023-05-15 17:09:51
1
	"scopeName": "markdown.ebnf.codeblock",
e0ad0c6 Jamozed 2022-11-22 16:13:08
2
	"fileTypes": [],
e0ad0c6 Jamozed 2022-11-22 16:13:08
3
	"injectionSelector": "L:markup.fenced_code.block.markdown",
e0ad0c6 Jamozed 2022-11-22 16:13:08
4
	"patterns": [
e0ad0c6 Jamozed 2022-11-22 16:13:08
5
		{
e0ad0c6 Jamozed 2022-11-22 16:13:08
6
			"include": "#ebnf-code-block"
e0ad0c6 Jamozed 2022-11-22 16:13:08
7
		}
e0ad0c6 Jamozed 2022-11-22 16:13:08
8
	],
e0ad0c6 Jamozed 2022-11-22 16:13:08
9
	"repository": {
e0ad0c6 Jamozed 2022-11-22 16:13:08
10
		"ebnf-code-block": {
e0ad0c6 Jamozed 2022-11-22 16:13:08
11
			"begin": "(?<=[`~])ebnf(\\s+[^`~]*)?$",
e0ad0c6 Jamozed 2022-11-22 16:13:08
12
			"end": "(^|\\G)(?=\\s*[`~]{3,}\\s*$)",
e0ad0c6 Jamozed 2022-11-22 16:13:08
13
			"patterns": [
e0ad0c6 Jamozed 2022-11-22 16:13:08
14
				{
e0ad0c6 Jamozed 2022-11-22 16:13:08
15
					"begin": "(^|\\G)(\\s*)(.*)",
e0ad0c6 Jamozed 2022-11-22 16:13:08
16
					"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
e0ad0c6 Jamozed 2022-11-22 16:13:08
17
					"contentName": "meta.embedded.block.ebnf",
e0ad0c6 Jamozed 2022-11-22 16:13:08
18
					"patterns": [
e0ad0c6 Jamozed 2022-11-22 16:13:08
19
						{
e0ad0c6 Jamozed 2022-11-22 16:13:08
20
							"include": "text.ebnf"
e0ad0c6 Jamozed 2022-11-22 16:13:08
21
						}
e0ad0c6 Jamozed 2022-11-22 16:13:08
22
					]
e0ad0c6 Jamozed 2022-11-22 16:13:08
23
				}
e0ad0c6 Jamozed 2022-11-22 16:13:08
24
			]
e0ad0c6 Jamozed 2022-11-22 16:13:08
25
		}
3985c5a Jamozed 2023-05-15 17:09:51
26
	}
ad4a2a8 Drew Youngwerth 2022-11-21 19:04:44
27
}
28