Skip to content

Commit acb4415

Browse files
committed
WIP grammar for adoc code block
1 parent 39375a2 commit acb4415

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

packages/vscode-extension/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,16 @@
224224
"meta.embedded.block.cypher": "cypher"
225225
}
226226
},
227+
{
228+
"injectTo": [
229+
"text.asciidoc"
230+
],
231+
"scopeName": "inline.cypher.asciidoc.codeblock",
232+
"path": "./syntaxes/cypher.adoc.json",
233+
"embeddedLanguages": {
234+
"meta.embedded.block.cypher": "cypher"
235+
}
236+
},
227237
{
228238
"injectTo": [
229239
"source.js",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"scopeName": "inline.cypher.asciidoc.codeblock",
3+
"injectionSelector": "L:text.asciidoc -meta.embedded.block",
4+
"patterns": [
5+
{
6+
"begin": "\\[(source),\\s*(cypher)\\]",
7+
"name": "markup.fenced_code.block.markdown",
8+
"end": "(-{4})",
9+
"beginCaptures": {
10+
"1": {
11+
"name": "entity.name.function.asciidoc"
12+
},
13+
"2": {
14+
"name": "markup.meta.attribute-list.asciidoc"
15+
},
16+
"3": {
17+
"name": "markup.raw.asciidoc"
18+
}
19+
},
20+
"endCaptures": {
21+
"1": {
22+
"name": "punctuation.definition.markdown"
23+
}
24+
},
25+
"patterns": [
26+
{
27+
"include": "source.cypher"
28+
}
29+
]
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)