summaryrefslogtreecommitdiffstats
path: root/syntax/go.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-06-17 20:47:16 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-06-17 20:47:16 +0200
commit40c54bc12b5700f6bffed12209489e1f669f6423 (patch)
tree74b8abded0ba8ce296f3c358fefc16ec04e327a4 /syntax/go.vim
parent44b3d860cb85ccb4edd52fb0dcf6a4102d12e82a (diff)
downloadvim-polyglot-2.9.2.tar.gz
vim-polyglot-2.9.2.zip
Updatev2.9.2
Diffstat (limited to 'syntax/go.vim')
-rw-r--r--syntax/go.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/syntax/go.vim b/syntax/go.vim
index c025787e..8fb5d137 100644
--- a/syntax/go.vim
+++ b/syntax/go.vim
@@ -69,6 +69,10 @@ if !exists("g:go_highlight_methods")
let g:go_highlight_methods = 0
endif
+if !exists("g:go_highlight_fields")
+ let g:go_highlight_fields = 0
+endif
+
if !exists("g:go_highlight_structs")
let g:go_highlight_structs = 0
endif
@@ -310,6 +314,12 @@ if g:go_highlight_methods != 0
endif
hi def link goMethod Type
+" Fields;
+if g:go_highlight_fields != 0
+ syn match goField /\(\.\)\@<=\a\+\([\ \n\r\:\)]\)\@=/
+endif
+hi def link goField Type
+
" Structs;
if g:go_highlight_structs != 0
syn match goStruct /\(.\)\@<=\w\+\({\)\@=/