From 77deb26c6aa27d090f79483f7ff78e4fdef3880f Mon Sep 17 00:00:00 2001 From: Michael Sheets Date: Fri, 22 Feb 2013 00:59:42 -0600 Subject: [PATCH] Use meta.embedded scopes for interpolated strings --- Syntaxes/CoffeeScript (Literate).tmLanguage | 25 ++++++++++++++++----- Syntaxes/CoffeeScript.tmLanguage | 25 ++++++++++++++++----- 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/Syntaxes/CoffeeScript (Literate).tmLanguage b/Syntaxes/CoffeeScript (Literate).tmLanguage index 9b92b51..9e96cd8 100644 --- a/Syntaxes/CoffeeScript (Literate).tmLanguage +++ b/Syntaxes/CoffeeScript (Literate).tmLanguage @@ -1302,19 +1302,34 @@ begin - \#\{ - captures + #\{ + beginCaptures 0 name - punctuation.section.embedded.coffee + punctuation.section.embedded.begin.coffee + contentName + source.coffee end - \} + (\}) + endCaptures + + 0 + + name + punctuation.section.embedded.end.coffee + + 1 + + name + source.coffee + + name - source.coffee.embedded.source + meta.embedded.line.coffee patterns diff --git a/Syntaxes/CoffeeScript.tmLanguage b/Syntaxes/CoffeeScript.tmLanguage index f0aaa15..0556c96 100644 --- a/Syntaxes/CoffeeScript.tmLanguage +++ b/Syntaxes/CoffeeScript.tmLanguage @@ -633,19 +633,34 @@ begin - \#\{ - captures + #\{ + beginCaptures 0 name - punctuation.section.embedded.coffee + punctuation.section.embedded.begin.coffee + contentName + source.coffee end - \} + (\}) + endCaptures + + 0 + + name + punctuation.section.embedded.end.coffee + + 1 + + name + source.coffee + + name - source.coffee.embedded.source + meta.embedded.line.coffee patterns