mirror of
https://github.com/jlengrand/elm-language-client-vscode.git
synced 2026-03-10 15:49:20 +00:00
45 lines
1.4 KiB
JSON
45 lines
1.4 KiB
JSON
{
|
|
"fileTypes": [],
|
|
"injectionSelector": "L:text.html.markdown",
|
|
"patterns": [
|
|
{
|
|
"include": "#fenced_code_block_elm"
|
|
}
|
|
],
|
|
"repository": {
|
|
"fenced_code_block_elm": {
|
|
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(elm)(\\s+[^`~]*)?$)",
|
|
"name": "markup.fenced_code.block.markdown",
|
|
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
|
|
"beginCaptures": {
|
|
"3": {
|
|
"name": "punctuation.definition.markdown"
|
|
},
|
|
"5": {
|
|
"name": "fenced_code.block.language"
|
|
},
|
|
"6": {
|
|
"name": "fenced_code.block.language.attributes"
|
|
}
|
|
},
|
|
"endCaptures": {
|
|
"3": {
|
|
"name": "punctuation.definition.markdown"
|
|
}
|
|
},
|
|
"patterns": [
|
|
{
|
|
"begin": "(^|\\G)(\\s*)(.*)",
|
|
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
|
|
"contentName": "meta.embedded.block.elm",
|
|
"patterns": [
|
|
{
|
|
"include": "source.elm"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scopeName": "markdown.elm.codeblock"
|
|
} |