瀏覽代碼

Add goDeclaration to @goDeclTypeBegin cluster

Andrew Swistak 8 年之前
父節點
當前提交
127ee1586d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      after/syntax/go.vim

+ 1 - 1
after/syntax/go.vim

@@ -42,7 +42,7 @@ if g:go_highlight_types != 0
   syn region goDeclTypeStart          matchgroup=goContainer start=/\[/ end=/\]/ contains=@goNumbers nextgroup=goDeclTypeStart,goDeclTypeNamespace,goDeclTypeWord,goMapType,@goDeclarations skipwhite transparent contained
   syn match goDeclTypeWord            /\w\+/ contains=goMapType,@goDeclarations skipwhite contained
   syn match goDeclTypeNamespace       /\w\+\./ contains=OperatorChars nextgroup=goDeclTypeWord skipwhite contained
-  syn cluster goDeclTypeBegin         contains=goDeclTypeStart,goDeclTypeWord,goDeclTypeNamespace
+  syn cluster goDeclTypeBegin         contains=goDeclTypeStart,goDeclTypeType,goDeclTypeNamespace,goDeclaration
 
   syn region goMapKeyRegion           matchgroup=goContainer start=/\[/ end=/\]/ contains=@goDeclTypeBegin,goDeclaration nextgroup=@goDeclTypeBegin skipwhite contained
   syn keyword goMapType               map nextgroup=goMapKeyRegion skipwhite