From 58709c49f6b6ede81dcf87752b09b8f64d84f1fc Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 10 Jan 2018 23:50:02 +0100 Subject: Update --- syntax/go.vim | 14 ++++++- syntax/html.vim | 2 +- syntax/json.vim | 10 +++-- syntax/julia.vim | 27 +++++++++---- syntax/plantuml.vim | 2 +- syntax/terraform.vim | 111 +++++++++++++++++++++++++++++++++++++++++++++++++-- 6 files changed, 148 insertions(+), 18 deletions(-) (limited to 'syntax') 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 diff --git a/syntax/html.vim b/syntax/html.vim index 19148af2..28e09e0b 100644 --- a/syntax/html.vim +++ b/syntax/html.vim @@ -112,7 +112,7 @@ syn keyword htmlArg contained async " syn keyword htmlArg contained select "