Sublime Forum

Update to the Go package

#1

just a patch to add more of the Go builtins esp now that Go 1 will be here “Real Soon Now”

--- a/Go.tmLanguage.a
+++ b/Go.tmLanguage
@@ -324,7 +324,7 @@
                                                </dict>
                                        </dict>
                                        <key>match</key>
-                                       <string>(\s*)\b(new|c(lose(d)?|ap)|p(anic(ln)?|rint(ln)?)|len|make)(?:\b|\()</string>
+                                       <string>(\s*)\b(new|c(lose|ap|opy)|p(anic(ln)?|rint(ln)?)|len|make|delete|re(al|cover)|imag)(?:\b|\()</string>
                                </dict>
                                <dict>
                                        <key>include</key>
@@ -432,7 +432,7 @@
                                </dict>
                                <dict>
                                        <key>match</key>
-                                       <string>(\b|(?&lt;=\]))(int(16|8|32|64)?|uint(16|8|32|ptr|64)?|float(32|64)?|b(yte|ool)|string)\b</string>
+                                       <string>(\b|(?&lt;=\]))(int(16|8|32|64)?|uint(16|8|32|ptr|64)?|float(32|64)?|b(yte|ool)|string|error|rune|complex(64|128))\b</string>
                                        <key>name</key>
                                        <string>storage.type.go</string>
0 Likes

#2

DisposaBoy - would you say that the stock Go.tmLanguage with this modification is the definitive version?

0 Likes