summaryrefslogtreecommitdiffstats
path: root/syntax/gotexttmpl.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/gotexttmpl.vim')
-rw-r--r--syntax/gotexttmpl.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/gotexttmpl.vim b/syntax/gotexttmpl.vim
index 0b8987c0..11539355 100644
--- a/syntax/gotexttmpl.vim
+++ b/syntax/gotexttmpl.vim
@@ -76,8 +76,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