Files
vim-vue-plugin/test/cases/shared-empty-tag.vue
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

13 lines
242 B
Vue

<template>
<div>
<input v-model="name" @input="(e) => update(e)" />
<p>x</p>
<input type="text">
<p>y</p>
<img src="a.png" alt="a" />
<p>z</p>
<input :class="a > b ? 'a' : 'b'">
<p>w</p>
</div>
</template>