From 1aa048b2d272adae489983cf315dbf9c3151a0c0 Mon Sep 17 00:00:00 2001 From: Tiit Pikma Date: Fri, 10 Mar 2017 09:43:33 +0200 Subject: [PATCH] Allow trimming around comments in gotexttmpl syntax. --- syntax/gotexttmpl.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/gotexttmpl.vim b/syntax/gotexttmpl.vim index de21d7fca5..ab8b1b6d72 100644 --- a/syntax/gotexttmpl.vim +++ b/syntax/gotexttmpl.vim @@ -74,8 +74,8 @@ hi def link goTplVariable Special syn region gotplAction start="{{" end="}}" contains=@gotplLiteral,gotplControl,gotplFunctions,gotplVariable,goTplIdentifier display syn region gotplAction start="\[\[" end="\]\]" contains=@gotplLiteral,gotplControl,gotplFunctions,gotplVariable display -syn region goTplComment start="{{/\*" end="\*/}}" display -syn region goTplComment start="\[\[/\*" end="\*/\]\]" display +syn region goTplComment start="{{\(- \)\?/\*" end="\*/\( -\)\?}}" display +syn region goTplComment start="\[\[\(- \)\?/\*" end="\*/\( -\)\?\]\]" display hi def link gotplAction PreProc hi def link goTplComment Comment