diff --git a/syntax/go.vim b/syntax/go.vim index b9b6f70..7814342 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -308,7 +308,7 @@ hi def link goFunction Function " Methods; if g:go_highlight_methods != 0 - syn match goMethod /\.\w\+(/hs=s+1,he=e-1 + syn match goMethod /\.\w\+\ze(/hs=s+1 endif hi def link goMethod Type @@ -368,8 +368,14 @@ if g:go_highlight_build_constraints != 0 hi def link goPackageComment Comment endif +" :GoSameIds hi def goSameId term=bold cterm=bold ctermbg=white ctermfg=black +" :GoCoverage commands +hi def link goCoverageNormalText Comment +hi def goCoverageCovered ctermfg=green +hi def goCoverageUncover ctermfg=red + " Search backwards for a global declaration to start processing the syntax. "syn sync match goSync grouphere NONE /^\(const\|var\|type\|func\)\>/