Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use meta.embedded for string embedding.

  • Loading branch information...
commit a773d6141f5a6a7ee7f80be6e290f4388e406dbc 1 parent 64975e0
@infininight infininight authored
View
4 Macros/Delete forward:backward.tmMacro
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>commands</key>
@@ -18,7 +18,7 @@
<key>name</key>
<string>Delete forward/backward</string>
<key>scope</key>
- <string>source.ruby.embedded.source.empty</string>
+ <string>meta.embedded.line.ruby &amp; (L:punctuation.section.embedded.begin.ruby &amp; R:punctuation.section.embedded.end.ruby)</string>
<key>uuid</key>
<string>A83F68A9-F751-4BB4-AE16-56812878C16A</string>
</dict>
View
4 Macros/Overwrite } in #{ .. }.plist
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>commands</key>
@@ -45,7 +45,7 @@
<key>name</key>
<string>Overwrite '}' in #{ .. }</string>
<key>scope</key>
- <string>source.ruby string.quoted source.ruby.embedded</string>
+ <string>source.ruby string.quoted meta.embedded source.ruby</string>
<key>scopeType</key>
<string>local</string>
<key>uuid</key>
View
2  Snippets/embed string variable.plist
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
View
36 Syntaxes/Ruby.plist
@@ -2346,39 +2346,35 @@
<key>patterns</key>
<array>
<dict>
- <key>captures</key>
+ <key>begin</key>
+ <string>#\{</string>
+ <key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
- <string>punctuation.section.embedded.ruby</string>
- </dict>
- <key>1</key>
- <dict>
- <key>name</key>
- <string>source.ruby.embedded.source.empty</string>
+ <string>punctuation.section.embedded.begin.ruby</string>
</dict>
</dict>
- <key>match</key>
- <string>#\{(\})</string>
- <key>name</key>
- <string>source.ruby.embedded.source</string>
- </dict>
- <dict>
- <key>begin</key>
- <string>#\{</string>
- <key>captures</key>
+ <key>contentName</key>
+ <string>source.ruby</string>
+ <key>end</key>
+ <string>(\})</string>
+ <key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
- <string>punctuation.section.embedded.ruby</string>
+ <string>punctuation.section.embedded.end.ruby</string>
+ </dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>source.ruby</string>
</dict>
</dict>
- <key>end</key>
- <string>\}</string>
<key>name</key>
- <string>source.ruby.embedded.source</string>
+ <string>meta.embedded.line.ruby</string>
<key>patterns</key>
<array>
<dict>
Please sign in to comment.
Something went wrong with that request. Please try again.