Skip to content

Syntax highlighting breaks on script when template includes self-closing and a src with a slash #836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
marco-gattelli opened this issue Jul 5, 2018 · 5 comments

Comments

@marco-gattelli
Copy link

  • I have searched through existing issues

Info

  • Platform: macOS
  • Vetur version: 0.12.5
  • VS Code version: 1.24.1

Problem

When using a self closing template tag Vetur does not highligth script tag correctly.

captura de pantalla 2018-07-05 a las 12 18 16

But if I remove the / in the src tag, magically:

captura de pantalla 2018-07-05 a las 12 40 33

@octref probably the problem is in the regex..??

@Webifi
Copy link

Webifi commented Oct 31, 2019

I'm seeing this as well on Vetur 0.22.6, Windows 10, Vscode 1.39.2.

@octref
Copy link
Member

octref commented Dec 12, 2019

Best advice I can give now is to not use self-closing <template> for imports.

@gfernandez-me
Copy link

same here

same issue here maybe: #1577

@octref
Copy link
Member

octref commented Feb 10, 2020

Duplicate of #1211, which was fixed.

@octref
Copy link
Member

octref commented Feb 10, 2020

Syntax highlighting is fixed, language regions not, so #1577 is still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants