aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Pomerleau <[email protected]>2020-10-18 03:27:03 +0100
committerDusty Pomerleau <[email protected]>2020-10-18 03:27:03 +0100
commit06208e622f8306d30c177f2817bf43fe1e2d8862 (patch)
tree9a23155bf75c535f93373ea2e1f8e1f1b8b9d532
parent7c4bb971456649ab18a5dadd355a96d53cb72ed1 (diff)
fix: prevent unwanted interpolation scopes
-rw-r--r--editors/code/rust.tmGrammar.json20
1 files changed, 6 insertions, 14 deletions
diff --git a/editors/code/rust.tmGrammar.json b/editors/code/rust.tmGrammar.json
index 66c8843f4..18fad6288 100644
--- a/editors/code/rust.tmGrammar.json
+++ b/editors/code/rust.tmGrammar.json
@@ -694,23 +694,15 @@
694 "interpolations": { 694 "interpolations": {
695 "comment": "curly brace interpolations", 695 "comment": "curly brace interpolations",
696 "name": "meta.interpolation.rust", 696 "name": "meta.interpolation.rust",
697 "begin": "{", 697 "match": "({)[^\"{}]*(})",
698 "beginCaptures": { 698 "captures": {
699 "0": { 699 "1": {
700 "name": "punctuation.definition.interpolation.rust" 700 "name": "punctuation.definition.interpolation.rust"
701 } 701 },
702 }, 702 "2": {
703 "end": "}",
704 "endCaptures": {
705 "0": {
706 "name": "punctuation.definition.interpolation.rust" 703 "name": "punctuation.definition.interpolation.rust"
707 } 704 }
708 }, 705 }
709 "patterns": [
710 {
711 "include": "#interpolations"
712 }
713 ]
714 }, 706 },
715 "lifetimes": { 707 "lifetimes": {
716 "patterns": [ 708 "patterns": [