mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-10 03:13:34 +00:00
![River Riddle](/assets/img/avatar_default.png)
A special language contribution is required for properly supporting markdown code blocks in vscodes builtin markdown grammar, see https://github.com/mjbvz/vscode-fenced-code-block-grammar-injection-example for more details.
45 lines
951 B
JSON
45 lines
951 B
JSON
{
|
|
"fileTypes": [],
|
|
"injectionSelector": "L:text.html.markdown",
|
|
"patterns": [
|
|
{
|
|
"include": "#mlir-code-block"
|
|
}
|
|
],
|
|
"repository": {
|
|
"mlir-code-block": {
|
|
"begin": "(^|\\G)(\\s*)(\\`{3,}|~{3,})\\s*(?i:(mlir)(\\s+[^`~]*)?$)",
|
|
"name": "markup.fenced_code.block.markdown",
|
|
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
|
|
"beginCaptures": {
|
|
"3": {
|
|
"name": "punctuation.definition.markdown"
|
|
},
|
|
"4": {
|
|
"name": "fenced_code.block.language.markdown"
|
|
},
|
|
"5": {
|
|
"name": "fenced_code.block.language.attributes.markdown"
|
|
}
|
|
},
|
|
"endCaptures": {
|
|
"3": {
|
|
"name": "punctuation.definition.markdown"
|
|
}
|
|
},
|
|
"patterns": [
|
|
{
|
|
"begin": "(^|\\G)(\\s*)(.*)",
|
|
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
|
|
"contentName": "meta.embedded.block.mlir",
|
|
"patterns": [
|
|
{
|
|
"include": "source.mlir"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scopeName": "markdown.mlir.codeblock"
|
|
} |