aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorGeorge Fraser <[email protected]>2020-05-09 20:32:08 +0100
committerGeorge Fraser <[email protected]>2020-05-10 21:07:28 +0100
commitd5d154ba3f6823feeaaa62c2238711bcf0c43c53 (patch)
tree6b51c6b64f9f5da62360fc6c8fd94c976bde5a4d /editors
parenta91d15c80c337dd1afb0eddd5eb048010d098ac7 (diff)
Color lifetimes like types
Diffstat (limited to 'editors')
-rw-r--r--editors/code/rust.tmGrammar.json16
1 files changed, 4 insertions, 12 deletions
diff --git a/editors/code/rust.tmGrammar.json b/editors/code/rust.tmGrammar.json
index 784bd8c9a..16497abb0 100644
--- a/editors/code/rust.tmGrammar.json
+++ b/editors/code/rust.tmGrammar.json
@@ -586,23 +586,15 @@
586 }, 586 },
587 "lifetime": { 587 "lifetime": {
588 "comment": "Named lifetime", 588 "comment": "Named lifetime",
589 "name": "storage.modifier.lifetime.rust", 589 "name": "entity.name.type.lifetime.rust",
590 "match": "'([a-zA-Z_][a-zA-Z0-9_]*)\\b", 590 "match": "'([a-zA-Z_][a-zA-Z0-9_]*)\\b"
591 "captures": {
592 "1": {
593 "name": "entity.name.lifetime.rust"
594 }
595 }
596 }, 591 },
597 "ref_lifetime": { 592 "ref_lifetime": {
598 "comment": "Reference with named lifetime", 593 "comment": "Reference with named lifetime",
599 "match": "&('([a-zA-Z_][a-zA-Z0-9_]*))\\b", 594 "match": "&('[a-zA-Z_][a-zA-Z0-9_]*)\\b",
600 "captures": { 595 "captures": {
601 "1": { 596 "1": {
602 "name": "storage.modifier.lifetime.rust" 597 "name": "entity.name.type.lifetime.rust"
603 },
604 "2": {
605 "name": "entity.name.lifetime.rust"
606 } 598 }
607 } 599 }
608 }, 600 },