mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Auto merge of #15116 - Veykril:remove-markdown-injection, r=Veykril
Remove markdown injection again I really tried to make this work, but this stuff is so underdocumented and basically none of the regex options worked for me (not `match`, nor using `begin` and `end` pairs), VSCode basically doesn't help you out at all as it doesn't ever seem to report errors even when debugging an extension, so at this point I'm inclined to just remove this again, as it is only causing issues. Closes https://github.com/rust-lang/rust-analyzer/issues/15114 Closes https://github.com/rust-lang/rust-analyzer/issues/15111
This commit is contained in:
commit
246d11b2a5
@ -10,6 +10,5 @@
|
||||
!package-lock.json
|
||||
!package.json
|
||||
!ra_syntax_tree.tmGrammar.json
|
||||
!rustdoc.markdown.injection.tmGrammar.json
|
||||
!server
|
||||
!README.md
|
||||
|
@ -1646,16 +1646,6 @@
|
||||
"language": "ra_syntax_tree",
|
||||
"scopeName": "source.ra_syntax_tree",
|
||||
"path": "ra_syntax_tree.tmGrammar.json"
|
||||
},
|
||||
{
|
||||
"scopeName": "source.rustdoc.markdown.injection",
|
||||
"path": "rustdoc.markdown.injection.tmGrammar.json",
|
||||
"injectTo": [
|
||||
"source.rust"
|
||||
],
|
||||
"embeddedLanguages": {
|
||||
"meta.embedded.block.markdown": "text.html.markdown"
|
||||
}
|
||||
}
|
||||
],
|
||||
"problemMatchers": [
|
||||
|
@ -1,23 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"scopeName": "source.rustdoc.markdown.injection",
|
||||
"injectionSelector": "L:source.rust",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#doc-comment-line"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"doc-comment-line": {
|
||||
"name": "comment.line.documentation.rust",
|
||||
"begin": "^\\s*//(/|!)",
|
||||
"end": "$",
|
||||
"contentName": "meta.embedded.block.markdown",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.markdown"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user