diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2018-01-10 23:50:02 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2018-01-10 23:50:02 +0100 |
commit | 58709c49f6b6ede81dcf87752b09b8f64d84f1fc (patch) | |
tree | 3d9a50b80abee303e4663475b7c1e9e6fd4b7f2c /syntax/go.vim | |
parent | 3d5b784fa59b0e70e0174174ba894054aa5b02bc (diff) | |
download | vim-polyglot-58709c49f6b6ede81dcf87752b09b8f64d84f1fc.tar.gz vim-polyglot-58709c49f6b6ede81dcf87752b09b8f64d84f1fc.zip |
Update
Diffstat (limited to 'syntax/go.vim')
-rw-r--r-- | syntax/go.vim | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/syntax/go.vim b/syntax/go.vim index ef0bdd6b..4d5819ec 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -204,7 +204,19 @@ else endif if g:go_highlight_format_strings != 0 - syn match goFormatSpecifier /\([^%]\(%%\)*\)\@<=%[-#0 +]*\%(\*\|\d\+\)\=\%(\.\%(\*\|\d\+\)\)*[vTtbcdoqxXUeEfgGsp]/ contained containedin=goString + " [n] notation is valid for specifying explicit argument indexes + " 1. Match a literal % not preceded by a %. + " 2. Match any number of -, #, 0, space, or + + " 3. Match * or [n]* or any number or nothing before a . + " 4. Match * or [n]* or any number or nothing after a . + " 5. Match [n] or nothing before a verb + " 6. Match a formatting verb + syn match goFormatSpecifier /\ + \([^%]\(%%\)*\)\ + \@<=%[-#0 +]*\ + \%(\%(\%(\[\d\+\]\)\=\*\)\|\d\+\)\=\ + \%(\.\%(\%(\%(\[\d\+\]\)\=\*\)\|\d\+\)\=\)\=\ + \%(\[\d\+\]\)\=[vTtbcdoqxXUeEfFgGsp]/ contained containedin=goString,goRawString hi def link goFormatSpecifier goSpecialString endif |