rouge
rouge copied to clipboard
Vue @click shorthand gives error
Name of the lexer Vue
Code sample
<button
class="join-item btn"
@click="currentPage = currentPage - 1"
:disabled="currentPage <= 1"
>
«
</button>
Additional context v-on:click shorthand @click produces error, even though it is OK or even preferred ("We can use the v-on directive, which we typically shorten to the @ symbol" from Vue docs) to use the shorthand.
(I'm also not sure why the <= operator gives an error)