Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improve scoping of braces and parens, remove outdated snippet.

With the new scoping present here the custom snippet is no longer needed in favor of a global one in the Source bundle.
  • Loading branch information...
commit 7232ee66407a894f94358e23c6a32aad584a5ca7 1 parent 48287f7
@infininight infininight authored
Showing with 48 additions and 18 deletions.
  1. +0 −18 Snippets/Empty Parens.tmSnippet
  2. +48 −0 Syntaxes/Go.tmLanguage
View
18 Snippets/Empty Parens.tmSnippet
@@ -1,18 +0,0 @@
-<?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>
- $0
-</string>
- <key>keyEquivalent</key>
- <string>
-</string>
- <key>name</key>
- <string>Empty Parens</string>
- <key>scope</key>
- <string>source.go meta.parens.empty.go</string>
- <key>uuid</key>
- <string>214A69FB-0168-465E-AB51-D8C6C46BCF61</string>
-</dict>
View
48 Syntaxes/Go.tmLanguage
@@ -150,8 +150,24 @@
<dict>
<key>begin</key>
<string>\{</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.block.begin.go</string>
+ </dict>
+ </dict>
<key>end</key>
<string>\}</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.block.end.go</string>
+ </dict>
+ </dict>
<key>name</key>
<string>meta.block.go</string>
<key>patterns</key>
@@ -292,8 +308,24 @@
<dict>
<key>begin</key>
<string>\(</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.parens.begin.go</string>
+ </dict>
+ </dict>
<key>end</key>
<string>\)</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.parens.end.go</string>
+ </dict>
+ </dict>
<key>name</key>
<string>meta.parens.go</string>
<key>patterns</key>
@@ -312,8 +344,24 @@
<dict>
<key>begin</key>
<string>\{</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.function-block.begin.go</string>
+ </dict>
+ </dict>
<key>end</key>
<string>\}</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.function-block.end.go</string>
+ </dict>
+ </dict>
<key>name</key>
<string>meta.block.go</string>
<key>patterns</key>
Please sign in to comment.
Something went wrong with that request. Please try again.