Skip to content

Commit 800b988

Browse files
committed
Fix #{} snippet scopes
Fixes #241
1 parent 38697ca commit 800b988

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CoffeeScript.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ contexts:
439439
4: constant.language.flags.coffee
440440

441441
heredoc-pattern-body:
442-
- meta_scope: meta.string.regexp.coffee
442+
- meta_scope: meta.string.heredoc.coffee
443443
- meta_content_scope: string.regexp.coffee
444444
- match: (/{3})([imgy]{0,4})
445445
captures:

Snippets/Interpolated Code.tmSnippet

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
<key>name</key>
1010
<string>Interpolated Code</string>
1111
<key>scope</key>
12-
<string>(string.quoted.double.coffee) - string source, (string.quoted.double.heredoc.coffee) - string source</string>
12+
<string>
13+
source.coffee meta.string string.quoted.double,
14+
source.coffee meta.string.heredoc string.regexp
15+
</string>
1316
<key>tabTrigger</key>
1417
<string>#</string>
1518
</dict>

0 commit comments

Comments
 (0)