Indent correctly with template string

This commit is contained in:
leafOfTree
2019-09-20 16:34:48 +08:00
parent b76a07346d
commit f591da8f5e

View File

@@ -10,3 +10,8 @@ if exists("loaded_matchit")
\ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' .
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
endif
" Indent correctly with template string for vim-javascript/builtin
" indentexpr
let b:syng_str = '^\%(.*template\)\@!.*string\|special'
let b:syng_strcom = '^\%(.*template\)\@!.*string\|comment\|regex\|special\|doc'