mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +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": {
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "block comments",
|
||||
"comment": "empty block comments",
|
||||
"name": "comment.block.rust",
|
||||
"begin": "/\\*(?!\\*)",
|
||||
"match": "/\\*\\*/"
|
||||
},
|
||||
{
|
||||
"comment": "block documentation comments",
|
||||
"name": "comment.block.documentation.rust",
|
||||
"begin": "/\\*\\*",
|
||||
"end": "\\*/",
|
||||
"patterns": [
|
||||
{
|
||||
|
@ -318,9 +323,9 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"comment": "block documentation comments",
|
||||
"name": "comment.block.documentation.rust",
|
||||
"begin": "/\\*\\*",
|
||||
"comment": "block comments",
|
||||
"name": "comment.block.rust",
|
||||
"begin": "/\\*(?!\\*)",
|
||||
"end": "\\*/",
|
||||
"patterns": [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue