Skip to content

Commit

Permalink
Use meta.embedded scopes for interpolated strings
Browse files Browse the repository at this point in the history
  • Loading branch information
infininight authored and ttilley committed Apr 2, 2013
1 parent d6ea46f commit 77deb26
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 10 deletions.
25 changes: 20 additions & 5 deletions Syntaxes/CoffeeScript (Literate).tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -1302,19 +1302,34 @@
<array>
<dict>
<key>begin</key>
<string>\#\{</string>
<key>captures</key>
<string>#\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.coffee</string>
<string>punctuation.section.embedded.begin.coffee</string>
</dict>
</dict>
<key>contentName</key>
<string>source.coffee</string>
<key>end</key>
<string>\}</string>
<string>(\})</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.end.coffee</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>source.coffee</string>
</dict>
</dict>
<key>name</key>
<string>source.coffee.embedded.source</string>
<string>meta.embedded.line.coffee</string>
<key>patterns</key>
<array>
<dict>
Expand Down
25 changes: 20 additions & 5 deletions Syntaxes/CoffeeScript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -633,19 +633,34 @@
<array>
<dict>
<key>begin</key>
<string>\#\{</string>
<key>captures</key>
<string>#\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.coffee</string>
<string>punctuation.section.embedded.begin.coffee</string>
</dict>
</dict>
<key>contentName</key>
<string>source.coffee</string>
<key>end</key>
<string>\}</string>
<string>(\})</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.end.coffee</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>source.coffee</string>
</dict>
</dict>
<key>name</key>
<string>source.coffee.embedded.source</string>
<string>meta.embedded.line.coffee</string>
<key>patterns</key>
<array>
<dict>
Expand Down

0 comments on commit 77deb26

Please sign in to comment.