Skip to content
Browse files

Use meta.embedded scope.

  • Loading branch information...
1 parent f379028 commit 477a66a9e529fc40136460cee6f8d60b79a6552c @infininight infininight committed Nov 17, 2011
Showing with 8 additions and 5 deletions.
  1. +3 −2 Commands/Special: Return Inside an Empty Tag.tmCommand
  2. +5 −3 Syntaxes/PHP.plist
View
5 Commands/Special: Return Inside an Empty Tag.tmCommand
@@ -13,13 +13,14 @@
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
- <string>
+ <string>
+</string>
<key>name</key>
<string>Special: Return Inside an Empty Tag</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
- <key>scope</key>
+ <string>meta.embedded.line.empty.html source.php</string>
<key>uuid</key>
<string>647C793F-9098-481B-8B5A-BCEF3B48CB03</string>
</dict>
View
8 Syntaxes/PHP.plist
@@ -6,6 +6,8 @@
<string>TODO:
• Try to improve parameters list syntax – scope numbers, ‘=’, ‘,’ and possibly be intelligent about entity ordering
• Is meta.function-call the correct scope? I've added it to my theme but by default it's not highlighted</string>
+ <key>fileTypes</key>
+ <array/>
<key>firstLineMatch</key>
<string>^#!.*(?&lt;!-)php[0-9]{0,1}\b</string>
<key>foldingStartMarker</key>
@@ -27,7 +29,7 @@
<key>2</key>
<dict>
<key>name</key>
- <string>source.php.embedded.line.empty.html</string>
+ <string>meta.embedded.line.empty.html</string>
</dict>
<key>3</key>
<dict>
@@ -136,7 +138,7 @@
</dict>
</dict>
<key>name</key>
- <string>source.php.embedded.block.html</string>
+ <string>meta.embedded.block.html</string>
<key>patterns</key>
<array>
<dict>
@@ -181,7 +183,7 @@
</dict>
</dict>
<key>name</key>
- <string>source.php.embedded.line.html</string>
+ <string>meta.embedded.line.html</string>
<key>patterns</key>
<array>
<dict>

0 comments on commit 477a66a

Please sign in to comment.
Something went wrong with that request. Please try again.