Vetur: Syntax highlighting breaks when quote on single line

Created on 2 May 2019  路  3Comments  路  Source: vuejs/vetur

  • [X] I have searched through existing issues
  • [X] I have read through docs
  • [X] I have read FAQ

Info

  • Platform: macOS
  • Vetur version: 0.19.3
  • VS Code version: 1.33.1

Problem

When a quote is on single line on a attribute that takes js. The syntax highlighting becomes wrong.
Screenshot 2019-05-02 at 16 55 19

Reproducible Case

https://github.com/sacki5/veturpack/blob/master/client/views/Home.vue

bug grammar

Most helpful comment

No longer repros:

image

image

All 3 comments

Any updates on this @octref ? I'm seeing the same issue occur on my end:

Screenshot 2020-04-16 at 13 55 37

From inspecting the TM scopes, it seems as though it can't interpret the end of a quoted sequence when it's on a newline on its own:

When the quote terminates the end of the line:

Screenshot 2020-04-16 at 13 56 59

When the quote on its own is on the newline:

Screenshot 2020-04-16 at 13 57 04

I tried to set vue/max-len to handle it. i failed

No longer repros:

image

image

Was this page helpful?
0 / 5 - 0 ratings