From 40c54bc12b5700f6bffed12209489e1f669f6423 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 17 Jun 2016 20:47:16 +0200 Subject: Update --- syntax/go.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'syntax/go.vim') 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\+\({\)\@=/ -- cgit v1.2.3