mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-11-01 01:56:21 +08:00
test / test (push) Canceled after 0s
Add cases for attribute highlight on and off, block syntax by lang and emmet-vim group names, OnChangeVueSyntax(), matchit, .wpy, initial_indent as syntax and tag.syntax, and syntax after reloading. Also check indenting a file after removing all indent with g:test_flatten, which fails before the end tag fix as closing tags at column 0 were taken as block end tags.
17 lines
412 B
VimL
17 lines
412 B
VimL
let g:vim_vue_plugin_config = {
|
|
\'syntax': {
|
|
\ 'script': ['javascript'],
|
|
\ 'template': ['html'],
|
|
\ 'style': ['css'],
|
|
\},
|
|
\'foldexpr': 1,
|
|
\}
|
|
|
|
function! Check()
|
|
let levels = [1, 2, 1, 1, 1, 2, 3, 4, 4, 3, 3, 1, 1, 1, 1, 1, 2, 2, 1, 1]
|
|
for lnum in range(1, len(levels))
|
|
call ExpectFoldlevel(lnum, levels[lnum - 1])
|
|
endfor
|
|
endfunction
|
|
let g:test_flatten = 1
|