diff options
-rw-r--r-- | editors/code/rust.tmGrammar.json | 20 |
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": [ |