Permalink
Browse files

Thrift: Allow comments in more locations

git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/Thrift.tmbundle@10126 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 850c906 commit e9638efbb69d76725ada2070e0170169c24661f9 @kballard kballard committed Jul 3, 2008
Showing with 23 additions and 8 deletions.
  1. +23 −8 Syntaxes/Thrift.tmLanguage
View
@@ -173,13 +173,17 @@
</dict>
</dict>
<key>end</key>
- <string>$</string>
+ <string>$|^</string>
<key>name</key>
<string>meta.const.thrift</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
+ <string>#comments</string>
+ </dict>
+ <dict>
+ <key>include</key>
<string>#value</string>
</dict>
</array>
@@ -206,9 +210,16 @@
</dict>
</dict>
<key>end</key>
- <string>$</string>
+ <string>$|^</string>
<key>name</key>
<string>meta.typedef.thrift</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#comments</string>
+ </dict>
+ </array>
</dict>
<dict>
<key>begin</key>
@@ -227,7 +238,7 @@
</dict>
</dict>
<key>end</key>
- <string>$</string>
+ <string>(?&lt;=\})|$</string>
<key>name</key>
<string>meta.enum.thrift</string>
<key>patterns</key>
@@ -303,7 +314,7 @@
</dict>
</dict>
<key>end</key>
- <string>$</string>
+ <string>(?&lt;=\})|$</string>
<key>name</key>
<string>meta.senum.thrift</string>
<key>patterns</key>
@@ -374,7 +385,7 @@
</dict>
</dict>
<key>end</key>
- <string>$</string>
+ <string>(?&lt;=\})|$</string>
<key>name</key>
<string>meta.struct.thrift</string>
<key>patterns</key>
@@ -437,7 +448,7 @@
</dict>
</dict>
<key>end</key>
- <string>$</string>
+ <string>(?&lt;=\})|$</string>
<key>name</key>
<string>meta.exception.thrift</string>
<key>patterns</key>
@@ -504,7 +515,7 @@
</dict>
</dict>
<key>end</key>
- <string>$</string>
+ <string>(?&lt;=\})|$</string>
<key>name</key>
<string>meta.service.thrift</string>
<key>patterns</key>
@@ -573,7 +584,7 @@
</dict>
</dict>
<key>end</key>
- <string>$</string>
+ <string>$|^</string>
<key>name</key>
<string>meta.service.function.thrift</string>
<key>patterns</key>
@@ -661,6 +672,10 @@
</dict>
</array>
</dict>
+ <dict>
+ <key>include</key>
+ <string>#comments</string>
+ </dict>
</array>
</dict>
</array>

0 comments on commit e9638ef

Please sign in to comment.