mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
parent
a57b55f610
commit
89921928d0
|
@ -87,6 +87,16 @@
|
|||
"source.js",
|
||||
"source.js.jsx"
|
||||
]
|
||||
},
|
||||
{
|
||||
"scopeName": "documentation.example.injection",
|
||||
"path": "./syntaxes/ExampleJsDoc.injection.tmLanguage.json",
|
||||
"injectTo": [
|
||||
"source.ts",
|
||||
"source.tsx",
|
||||
"source.js",
|
||||
"source.js.jsx"
|
||||
]
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"injectionSelector": "L:comment.block.documentation",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#example"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"example": {
|
||||
"begin": "((@)example)\\s+",
|
||||
"while": "(^|\\G)\\s(?!@)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.class.jsdoc"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.block.tag.jsdoc"
|
||||
}
|
||||
},
|
||||
"contentName": "meta.embedded.block.example.source.ts",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "documentation.example.injection"
|
||||
}
|
Loading…
Reference in a new issue