diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-21 07:49:13 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-21 07:49:13 +0000 |
commit | cadf0e9fb630d04367ef2611383865963d84ab54 (patch) | |
tree | 4dbfa03dd6400a407c839696afd82e685bae8122 | |
parent | 48bb4bf22895edd3658658f088499b0dd60df371 (diff) | |
parent | 4410af455ecfe99c297015ad650c458a765e784f (diff) |
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 https://github.com/dustypomerleau/rust-syntax/issues/7).
Co-authored-by: Dusty Pomerleau <[email protected]>
-rw-r--r-- | editors/code/rust.tmGrammar.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/rust.tmGrammar.json b/editors/code/rust.tmGrammar.json index cd4775d27..4759bb116 100644 --- a/editors/code/rust.tmGrammar.json +++ b/editors/code/rust.tmGrammar.json | |||
@@ -409,7 +409,7 @@ | |||
409 | { | 409 | { |
410 | "comment": "booleans", | 410 | "comment": "booleans", |
411 | "name": "constant.language.bool.rust", | 411 | "name": "constant.language.bool.rust", |
412 | "match": "\\btrue|false\\b" | 412 | "match": "\\b(true|false)\\b" |
413 | } | 413 | } |
414 | ] | 414 | ] |
415 | }, | 415 | }, |