fix: prevent /**/ from matching block doc comments

This commit is contained in:
Dusty Pomerleau 2020-11-10 09:54:00 +11:00
parent 0a715cfbd2
commit 22dbbd16d8

View file

@ -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": [
{ {