Add tests and GitHub Actions

Replace the Travis tests, which used a separate repo and no longer
ran, with tests in this repo. Each case in test/cases is indented as
a whole and should be unchanged, with optional syntax, fold and tag
checks. The cases are from the previous tests, plus script-setup.vue
for <script setup> keywords and a sync check in oneline.vim.

test/run.sh runs the cases with Vim in a pseudo terminal, as syntax in
Ex mode isn't the same, and Neovim headless.
This commit is contained in:
leafOfTree committed 2026-10-19 14:20:24 +00:00
1 parent d87fbbdde4
commit de812d609b
27 files changed
+974 -19

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
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