Files
vim-vue-plugin/test/cases/script-setup.vim
T
leafOfTree 68b866210b
test / test (push) Canceled after 0s
Test all features
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.
2026-10-20 01:21:17 +00:00

20 lines
635 B
VimL

let g:vim_vue_plugin_config = {
\'syntax': {
\ 'template': ['html'],
\ 'script': ['javascript', 'typescript'],
\},
\'keyword': 1,
\}
function! Check()
call ExpectSyntax('withDefaults', 'vue3Keyword')
call ExpectSyntax('defineProps<', 'vue3Keyword')
call ExpectSyntax('defineEmits<', 'vue3Keyword')
call ExpectSyntax('defineModel<', 'vue3Keyword')
call ExpectSyntax('useTemplateRef', 'vue3Keyword')
call ExpectSyntax('ref<number>', 'vue3Keyword')
call ExpectNoSyntax('value < 3', 'vue3Keyword')
call ExpectSyntax('defineExpose', 'vue3Keyword')
endfunction
let g:test_flatten = 1