From 636e3ea31ddd270c9f20bbbcb011c3156e05cbc8 Mon Sep 17 00:00:00 2001 From: Danek Duvall Date: Thu, 29 Sep 2022 11:41:53 -0700 Subject: [PATCH] tweak comment highlighting - eliminate conflict between Go template comments and actions - allow newlines between action and comment delimiters --- syntax/helm.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syntax/helm.vim b/syntax/helm.vim index 03c9962..b3c203f 100644 --- a/syntax/helm.vim +++ b/syntax/helm.vim @@ -81,8 +81,7 @@ hi def link goTplVariable Special syn region gotplAction start="{{\(-? \)\?" end="\( -?\)\?}}" contains=@gotplLiteral,gotplControl,gotplFunctions,goSprigFunctions,gotplVariable,goTplIdentifier containedin=yamlFlowString display syn region gotplAction start="\[\[\(-? \)\?" end="\( -?\)\?\]\]" contains=@gotplLiteral,gotplControl,gotplFunctions,goSprigFunctions,gotplVariable containedin=yamlFlowString display -syn region goTplComment start="{{\(-? \)\?/\*" end="\*/\( -?\)\?}}" display -syn region goTplComment start="\[\[\(-? \)\?/\*" end="\*/\( -?\)\?\]\]" display +syn match goTplComment "{{\(-\_s\+\)\?/\*\_.\{-}\*/\(\_s\+-\)\?}}" hi def link gotplAction PreProc hi def link goTplComment Comment