Skip to content

Commit

Permalink
Merge pull request #1011 from ArkBriar/master
Browse files Browse the repository at this point in the history
Fix syntax goFormatSpecifier: check '%%'
  • Loading branch information
fatih committed Aug 27, 2016
2 parents 804130f + d72ed3a commit d5ac28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ else
endif

if g:go_highlight_format_strings != 0
syn match goFormatSpecifier /%[-#0 +]*\%(\*\|\d\+\)\=\%(\.\%(\*\|\d\+\)\)*[vTtbcdoqxXUeEfgGsp]/ contained containedin=goString
syn match goFormatSpecifier /\([^%]\(%%\)*\)\@<=%[-#0 +]*\%(\*\|\d\+\)\=\%(\.\%(\*\|\d\+\)\)*[vTtbcdoqxXUeEfgGsp]/ contained containedin=goString
hi def link goFormatSpecifier goSpecialString
endif

Expand Down

0 comments on commit d5ac28c

Please sign in to comment.