Restore injection grammar for multiline jsdoc types

For #108237

This only fixes the basic case of making sure multiline types in jsdoc do not capture the leading `*`
This commit is contained in:
Matt Bierner
2020-10-08 00:00:00 -06:00
parent 2dbd0ae6a4
commit f564bbd517
4 changed files with 178 additions and 10 deletions

View File

@@ -0,0 +1,21 @@
{
"injectionSelector": "L:comment.block.documentation",
"patterns": [
{
"include": "#jsdocbody"
}
],
"repository": {
"jsdocbody": {
"begin": "(?<=/\\*\\*)([^*]|\\*(?!/))*$",
"while": "(^|\\G)\\s*\\*(?!/)(?=([^*]|[*](?!/))*$)",
"patterns": [
{
"include": "source.ts#docblock"
}
]
}
},
"scopeName": "documentation.injection.js.jsx"
}

View File

@@ -0,0 +1,21 @@
{
"injectionSelector": "L:comment.block.documentation",
"patterns": [
{
"include": "#jsdocbody"
}
],
"repository": {
"jsdocbody": {
"begin": "(?<=/\\*\\*)([^*]|\\*(?!/))*$",
"while": "(^|\\G)\\s*\\*(?!/)(?=([^*]|[*](?!/))*$)",
"patterns": [
{
"include": "source.ts#docblock"
}
]
}
},
"scopeName": "documentation.injection.ts"
}