Skip to content

Commit cadf0e9

Browse files
Merge #6598
6598: Textmate grammar: ensure word boundary after `true` r=dustypomerleau a=dustypomerleau Adding round brackets ensures word boundaries on both sides of booleans (reported in dustypomerleau/rust-syntax#7). Co-authored-by: Dusty Pomerleau <dustypomerleau@users.noreply.github.com>
2 parents 48bb4bf + 4410af4 commit cadf0e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/rust.tmGrammar.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
{
410410
"comment": "booleans",
411411
"name": "constant.language.bool.rust",
412-
"match": "\\btrue|false\\b"
412+
"match": "\\b(true|false)\\b"
413413
}
414414
]
415415
},

0 commit comments

Comments
 (0)