fix: prevent `/**/` from matching block doc comments
"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": [
{
]
},
{
- "comment": "block documentation comments",
- "name": "comment.block.documentation.rust",
- "begin": "/\\*\\*",
+ "comment": "block comments",
+ "name": "comment.block.rust",
+ "begin": "/\\*(?!\\*)",
"end": "\\*/",
"patterns": [
{
