rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.3k stars 732 forks source link

Vue @click shorthand gives error #2026

Open leafleaf90 opened 4 months ago

leafleaf90 commented 4 months ago

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)