rust-analyzer/editors/code/rustdoc.markdown.injection.tmGrammar.json

36 lines
980 B
JSON

{
"scopeName": "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*\\*/",
"contentName": "meta.embedded.block.markdown",
"patterns": [
{
"include": "text.html.markdown"
}
]
}
}
}