rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Vue @click shorthand gives error

Open leafleaf90 opened this issue 1 year ago • 0 comments

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.

image (I'm also not sure why the <= operator gives an error)

leafleaf90 avatar Feb 12 '24 08:02 leafleaf90