Permalink
Browse files

Thrift: Add exception snippet and make struct field macro work with it

git-svn-id: http://svn.textmate.org/trunk/Bundles/Thrift.tmbundle@10085 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent a7a47fb commit 3f0bf8e392cefa57cc168e843f6c0d84abec1c94 @kballard kballard committed Jun 30, 2008
Showing with 20 additions and 2 deletions.
  1. +1 −1 Commands/struct field.tmCommand
  2. +1 −1 Macros/struct field.tmMacro
  3. +18 −0 Snippets/exception.tmSnippet
@@ -32,7 +32,7 @@ print "#{indent}${1:#{i}}${1/.+/: /m}${2:i32} ${3:field}${4/.+/ = /m}${4:value},
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
- <string>meta.struct.thrift</string>
+ <string>meta.struct.thrift, meta.exception.thrift</string>
<key>uuid</key>
<string>9240E318-0643-4BF7-8EBA-DD947C8CB7B9</string>
</dict>
@@ -54,7 +54,7 @@ print "#{indent}${1:#{i}}${1/.+/: /m}${2:i32} ${3:field}${4/.+/ = /m}${4:value},
<key>name</key>
<string>struct field</string>
<key>scope</key>
- <string>meta.struct.thrift</string>
+ <string>meta.struct.thrift, meta.exception.thrift</string>
<key>uuid</key>
<string>908FD647-26E2-4A8E-BBC9-084233EFA5B7</string>
</dict>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!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>
+ <string>exception ${1:Name} {
+ 1: string message,$0
+}</string>
+ <key>name</key>
+ <string>exception</string>
+ <key>scope</key>
+ <string>source.thrift -meta</string>
+ <key>tabTrigger</key>
+ <string>exc</string>
+ <key>uuid</key>
+ <string>4B087906-E44D-48BF-8601-2BB95E285CAF</string>
+</dict>
+</plist>

0 comments on commit 3f0bf8e

Please sign in to comment.