Remove markdown injection for block comments

This commit is contained in:
Lukas Wirth 2023-06-21 19:08:00 +02:00
parent 6d333e587d
commit c672cedeba
2 changed files with 4 additions and 17 deletions

View File

@ -1648,7 +1648,7 @@
"path": "ra_syntax_tree.tmGrammar.json"
},
{
"scopeName": "rustdoc.markdown.injection",
"scopeName": "source.rustdoc.markdown.injection",
"path": "rustdoc.markdown.injection.tmGrammar.json",
"injectTo": [
"source.rust"

View File

@ -1,30 +1,17 @@
{
"scopeName": "rustdoc.markdown.injection",
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"scopeName": "source.rustdoc.markdown.injection",
"injectionSelector": "L:source.rust",
"patterns": [
{
"include": "#doc-comment-line"
},
{
"include": "#doc-comment-block"
}
],
"repository": {
"doc-comment-line": {
"name": "comment.line.documentation.rust",
"begin": "^\\s*//(/|!)",
"while": "^\\s*//(/|!)",
"contentName": "meta.embedded.block.markdown",
"patterns": [
{
"include": "text.html.markdown"
}
]
},
"doc-comment-block": {
"name": "comment.block.documentation.rust",
"begin": "/\\*(\\*|!)",
"end": "\\s*\\*/",
"end": "$",
"contentName": "meta.embedded.block.markdown",
"patterns": [
{