Permalink
Browse files

Adding new punctuation scopes to various rules.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Smarty.tmbundle@5514 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 914415e commit 44dd7cba8aeb080af000907a54f50faef4d93b99 @infininight infininight committed Oct 19, 2006
Showing with 58 additions and 2 deletions.
  1. +58 −2 Syntaxes/Smarty.plist
View
60 Syntaxes/Smarty.plist
@@ -15,6 +15,14 @@
<dict>
<key>begin</key>
<string>(?&lt;=\{)\*</string>
+ <key>captures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.comment.smarty</string>
+ </dict>
+ </dict>
<key>end</key>
<string>\*(?=\})</string>
<key>name</key>
@@ -59,8 +67,24 @@
<dict>
<key>begin</key>
<string>'</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.smarty</string>
+ </dict>
+ </dict>
<key>end</key>
<string>'</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.smarty</string>
+ </dict>
+ </dict>
<key>name</key>
<string>string.quoted.single.smarty</string>
<key>patterns</key>
@@ -76,8 +100,24 @@
<dict>
<key>begin</key>
<string>"</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.smarty</string>
+ </dict>
+ </dict>
<key>end</key>
<string>"</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.smarty</string>
+ </dict>
+ </dict>
<key>name</key>
<string>string.quoted.double.smarty</string>
<key>patterns</key>
@@ -91,14 +131,30 @@
</array>
</dict>
<dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.variable.smarty</string>
+ </dict>
+ </dict>
<key>match</key>
- <string>\b\$Smarty\.</string>
+ <string>\b(\$)Smarty\.</string>
<key>name</key>
<string>variable.other.global.smarty</string>
</dict>
<dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.variable.smarty</string>
+ </dict>
+ </dict>
<key>match</key>
- <string>\$[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*?\b</string>
+ <string>(\$)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*?\b</string>
<key>name</key>
<string>variable.other.smarty</string>
</dict>

0 comments on commit 44dd7cb

Please sign in to comment.