vuejs / vue-syntax-highlight

💡 Sublime Text syntax highlighting for single-file Vue components
MIT License
1.48k stars 233 forks source link

Vue Element Syntax Error with Arrow Functions Involving Strings #224

Open UnRealSKY opened 9 months ago

UnRealSKY commented 9 months ago

Using arrow functions within Vue elements and utilizing strings inside them leads to an error, regardless of whether backticks(`), single quotes('), or double quotes(") are used.

image image

deathaxe commented 2 weeks ago

I can't reproduce it with ST4155...4178.

grafik

<q-dialog
    :refs="() => {refController(modal.fullTool.refs, 'dialog')}"
    v-model="modal.fullToll.isOpen"
    no-esc-dismiss
    no-backdrop-dismiss
>

As Vue just embedds source.js the issue might be caused by an outdated or malformed JavaSctipt syntax.