Files
vim-vue-plugin/test/cases/shared-empty-tag.vim
leafOfTree ed9e40037f Fix indent after an empty tag with '>' in attributes
A line like <input @input="(e) => update(e)" /> was taken as an empty
tag without '/>', as '>' in '=>' matched its end, so the next line was
indented one level less. Skip '>' in quotes, and don't take '/>' as the
end of an empty tag.
2026-10-21 14:03:35 +00:00

8 lines
167 B
VimL

" Empty tags like <input> with or without '/>', and '>' in attribute
" expressions
let g:test_flatten = 1
function! Check()
call ExpectIndentEachLine()
endfunction