mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +00:00
37 lines
980 B
JSON
37 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"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|