From 4ebf184e569af91174d96174f91865593c78f420 Mon Sep 17 00:00:00 2001 From: schrotie Date: Thu, 24 Sep 2020 09:35:38 +0200 Subject: [PATCH] Update htl_syntax.vim Allow custom tagging of templates, so it works without lithtml --- autoload/htl_syntax.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/htl_syntax.vim b/autoload/htl_syntax.vim index 358af88..9a58d36 100644 --- a/autoload/htl_syntax.vim +++ b/autoload/htl_syntax.vim @@ -35,7 +35,7 @@ function! htl_syntax#amend(options) exec 'syntax region litHtmlRegion \ contains=@HTMLSyntax,' . (a:options.typescript ? 'typescriptInterpolation,typescriptTemplateSubstitution' : 'jsTemplateExpression') . ' \ containedin=typescriptBlock - \ start=' . (l:all_templates ? '+\(html\)\?`+' : '+html`+') . ' + \ start=' . (l:all_templates ? '+\(html\)\?`+' : '+\(\/\*\s*\)\?html\(\s*\*\/\)\?`+') . ' \ skip=+\\`+ \ end=+`+ \ extend @@ -69,7 +69,7 @@ function! htl_syntax#amend(options) if (l:css_templates) exec 'syntax region cssLiteral \ contains=@CSSSyntax,' . (a:options.typescript ? 'typescriptInterpolation,typescriptTemplateSubstitution' : 'jsTemplateExpression') . ' - \ start=+css`+ + \ start=+\(\/\*\s*\)\?css\(\s*\*\/\)\?`+ \ skip=+\\`+ \ end=+`+ \ extend