Permalink
Browse files

Initial import

  • Loading branch information...
0 parents commit 72380d309f8fb102ca8046ff8d2a25351d0fa267 @AlanQuatermain committed Nov 15, 2009
@@ -0,0 +1 @@
+.DS_Store
@@ -0,0 +1,52 @@
+<?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>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby
+
+require ENV["TM_SUPPORT_PATH"] + "/lib/tm/executor"
+require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
+
+TextMate.save_current_document('Go')
+TextMate::Executor.make_project_master_current_document
+
+filepath = ENV["TM_FILEPATH"]
+base = filepath.chomp(File.extname(filepath))
+
+flags = ENV["TM_GO_FLAGS"]
+args = [ENV["TM_CGO"] || '6g', flags, filepath].compact # remove any odd nils in the args array
+
+if args[0] == '6g'
+ # run the compiler
+ #`#{args.join(' ')}`
+ TextMate::Executor.run(args)
+ # run the linker after the compiler
+ #`6l #{base}.6`
+ TextMate::Executor.run(['6l', base + '.6'])
+ # run the binary after the linker
+ args = [File.join(File.dirname(filepath), '6.out')]
+else
+ # run the compiler
+ `#{args.join(' ')}`
+ # run a.out after the compiler finishes
+ args = File.join(File.dirname(filepath), 'a.out')
+end
+
+TextMate::Executor.run(args)</string>
+ <key>input</key>
+ <string>document</string>
+ <key>keyEquivalent</key>
+ <string>@r</string>
+ <key>name</key>
+ <string>Run</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>uuid</key>
+ <string>0B3C3EB0-9F51-4997-A87D-ECA507D8E31E</string>
+</dict>
+</plist>
@@ -0,0 +1,42 @@
+<?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>name</key>
+ <string>Comments</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>settings</key>
+ <dict>
+ <key>shellVariables</key>
+ <array>
+ <dict>
+ <key>name</key>
+ <string>TM_COMMENT_START</string>
+ <key>value</key>
+ <string>// </string>
+ </dict>
+ <dict>
+ <key>name</key>
+ <string>TM_COMMENT_START_2</string>
+ <key>value</key>
+ <string>/*</string>
+ </dict>
+ <dict>
+ <key>name</key>
+ <string>TM_COMMENT_END_2</string>
+ <key>value</key>
+ <string>*/</string>
+ </dict>
+ <dict>
+ <key>name</key>
+ <string>TM_COMMENT_DISABLE_INDENT_2</string>
+ <key>value</key>
+ <string>yes</string>
+ </dict>
+ </array>
+ </dict>
+ <key>uuid</key>
+ <string>05400837-EE8F-44D1-A636-3EEB0E82FFF5</string>
+</dict>
+</plist>
@@ -0,0 +1,39 @@
+<?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>name</key>
+ <string>Indentation Rules</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>settings</key>
+ <dict>
+ <key>decreaseIndentPattern</key>
+ <string>(?x)
+ ^ # start of line
+ (.*\*/)? # capture: anything followed by */ (optional)
+ \s* \} # then whitespace and a closing curly brace
+ ( # capture:
+ [^}{"']* \{ # anything other than curly braces or quotes, then open curly
+ )? # (optional)
+ [;\s]* # any whitespace or semicolons
+ (//.*|/\*.*\*/\s*)? # capture: comments (optional)
+ $ # end of line
+ </string>
+ <key>increaseIndentPattern</key>
+ <string>(?x)
+ ^ .* \{ [^}"']* $ # lines containing an open curly but no quotes or close curly
+ </string>
+ <key>indentNextLinePattern</key>
+ <string>(?x)^
+ (?! .* [;:{}] # do not indent when line ends with ;, :, {, or }
+ \s* (//|/[*] .* [*]/ \s* $) # …account for potential trailing comment
+ )
+ </string>
+ <key>unIndentedLinePattern</key>
+ <string>^\s*((/\*|\*/|//|import\b.*|package\b.*).*)?$</string>
+ </dict>
+ <key>uuid</key>
+ <string>160118A4-208D-4422-AFF0-0C21B5B78AAF</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?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>for ${2:i} := 0; $2 &lt; ${1:count}; ${3:$2++}
+{
+ ${0:// code}
+}</string>
+ <key>name</key>
+ <string>For Loop</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>tabTrigger</key>
+ <string>for</string>
+ <key>uuid</key>
+ <string>7DA0072A-BF35-413B-B4D9-B5C2B4D20FF2</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?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>if ${1:condition}
+{
+ ${0:// code}
+}</string>
+ <key>name</key>
+ <string>If Statement</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>tabTrigger</key>
+ <string>if</string>
+ <key>uuid</key>
+ <string>AF797914-E5F7-4F2B-866B-852889C6A925</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?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>struct
+{
+ ${0:var vartype};
+}</string>
+ <key>name</key>
+ <string>Struct</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>tabTrigger</key>
+ <string>st</string>
+ <key>uuid</key>
+ <string>CC5D7F66-6BBC-4D9C-BC32-D569238523EB</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?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>func (${1:varname typename}) ${2:func_name}($3)$4
+{
+ ${0:// code}
+}</string>
+ <key>name</key>
+ <string>Type Function</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>tabTrigger</key>
+ <string>tfunc</string>
+ <key>uuid</key>
+ <string>D8CF6ACF-85BB-4AAD-BFDE-DFD9D075FCF2</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?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>func ${1:func_name}($2)$3
+{
+ ${0:// code}
+}</string>
+ <key>name</key>
+ <string>Func</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>tabTrigger</key>
+ <string>func</string>
+ <key>uuid</key>
+ <string>E9B44CC5-B004-4793-B125-7E429FDCCE32</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?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>import ${2:altname }"${1:name}"</string>
+ <key>name</key>
+ <string>Import</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>tabTrigger</key>
+ <string>imp</string>
+ <key>uuid</key>
+ <string>2DFA9510-6F88-4BC6-A409-DA4075DEA8FF</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?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>func main()
+{
+ ${0:// code}
+}</string>
+ <key>name</key>
+ <string>main()</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>tabTrigger</key>
+ <string>main</string>
+ <key>uuid</key>
+ <string>18A04BC9-D37A-46B9-8C92-4E8D287A46E4</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?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>type ${1:name} ${2:int8}</string>
+ <key>name</key>
+ <string>Type</string>
+ <key>scope</key>
+ <string>source.go</string>
+ <key>tabTrigger</key>
+ <string>type</string>
+ <key>uuid</key>
+ <string>9E325583-D146-41A4-BA94-0B5BF91DEBF8</string>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit 72380d3

Please sign in to comment.