aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 },