6516: Textmate grammar: prevent `/**/` from matching block doc comments r=dustypomerleau a=dustypomerleau

Fixes #6493.

Co-authored-by: Dusty Pomerleau <dustypomerleau@users.noreply.github.com>
This commit is contained in:
bors[bot] 2020-11-09 23:35:33 +00:00 committed by GitHub
commit f5f33741da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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