mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
fix: prevent /**/
from matching block doc comments
This commit is contained in:
parent
0a715cfbd2
commit
22dbbd16d8
1 changed files with 10 additions and 5 deletions
|
@ -307,9 +307,14 @@
|
||||||
"block-comments": {
|
"block-comments": {
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"comment": "block comments",
|
"comment": "empty block comments",
|
||||||
"name": "comment.block.rust",
|
"name": "comment.block.rust",
|
||||||
"begin": "/\\*(?!\\*)",
|
"match": "/\\*\\*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"comment": "block documentation comments",
|
||||||
|
"name": "comment.block.documentation.rust",
|
||||||
|
"begin": "/\\*\\*",
|
||||||
"end": "\\*/",
|
"end": "\\*/",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
|
@ -318,9 +323,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"comment": "block documentation comments",
|
"comment": "block comments",
|
||||||
"name": "comment.block.documentation.rust",
|
"name": "comment.block.rust",
|
||||||
"begin": "/\\*\\*",
|
"begin": "/\\*(?!\\*)",
|
||||||
"end": "\\*/",
|
"end": "\\*/",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue