Highlight some basic markdown elements in js/ts fenced code blocks
Fixes #63942
This commit is contained in:
parent
72ece3c7ee
commit
5df76d3535
3 changed files with 2481 additions and 2446 deletions
File diff suppressed because it is too large
Load diff
|
@ -77,6 +77,16 @@
|
|||
"meta.import string.quoted": "other",
|
||||
"variable.other.jsdoc": "other"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scopeName": "documentation.markdown.injection",
|
||||
"path": "./syntaxes/MarkdownDocumentationInjection.tmLanguage.json",
|
||||
"injectTo": [
|
||||
"source.ts",
|
||||
"source.tsx",
|
||||
"source.js",
|
||||
"source.js.jsx"
|
||||
]
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"injectionSelector": "L:comment.block.documentation",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#markdown-comment"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"markdown-comment": {
|
||||
"begin": "^\\s*\\*(?!/)",
|
||||
"while": "(^|\\G)\\s*\\*(?!/)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.markdown#fenced_code_block"
|
||||
},
|
||||
{
|
||||
"include": "text.html.markdown#lists"
|
||||
},
|
||||
{
|
||||
"include": "source.ts#docblock"
|
||||
},
|
||||
{
|
||||
"include": "text.html.markdown#inline"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "documentation.markdown.injection"
|
||||
}
|
Loading…
Reference in a new issue