From eaa6f039cc574d3d1374e4c652089c71ee02f930 Mon Sep 17 00:00:00 2001 From: Erik Ronshagen Date: Thu, 15 Sep 2016 22:40:14 -0700 Subject: [PATCH] Replaced regexp string matching with regular string matching --- grammars/tcl.cson | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/grammars/tcl.cson b/grammars/tcl.cson index b0aee37..002fe1a 100644 --- a/grammars/tcl.cson +++ b/grammars/tcl.cson @@ -205,18 +205,31 @@ repository: { include: '#inner-braces' } + { + include: "#string" + } ] } ] string: - applyEndPatternLast: 1 - begin: "(?:^|(?<=\\s))(?=\")" - comment: "matches a single quote-enclosed word with scoping" - end: "" + begin: "\"" + beginCaptures: + "0": + name: "punctuation.definition.string.begin.tcl" + end: "\"" + endCaptures: + "0": + name: "punctuation.definition.string.end.tcl" name: "string.quoted.double.tcl" patterns: [ { - include: "#bare-string" + include: "#escape" + } + { + include: "#variable" + } + { + include: "#embedded" } ] variable: