Skip to content
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

Multiple lines attributes break syntax highlighting for scss #1477

Open
CaptainYouz opened this issue Oct 23, 2019 · 1 comment
Open

Multiple lines attributes break syntax highlighting for scss #1477

CaptainYouz opened this issue Oct 23, 2019 · 1 comment

Comments

@CaptainYouz
Copy link

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

Info

  • Platform: macOs
  • Vetur version: 0.22.5
  • VS Code version: 1.39.2

Problem

In the <style> part of the vue file, when putting style attributes in multiple lines, it messes up the syntax highlighting of the scss.

If

<style lang="scss" scoped>

become

<style
  lang="scss"
  scoped
>

then the scss syntax highlighting become weird.

before:
Screenshot 2019-10-23 at 17 49 55
after:
Screenshot 2019-10-23 at 17 49 38

Reproducible Case

Put <style> attributes on multiple lines.

@octref
Copy link
Member

octref commented Oct 23, 2019

The grammar is fragile and I'm not sure what's the best way to support this. PR with test cases are welcome.

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

2 participants