mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-11-01 01:56:21 +08:00
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.
13 lines
242 B
Vue
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>
|