vetur icon indicating copy to clipboard operation
vetur copied to clipboard

Syntax highlighting does not work for style blocks with `lang="stylus"` and multiline attributes

Open havardthom opened this issue 2 years ago • 1 comments

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ
  • [x] I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform:
  • Vetur version: 0.35.0
  • VS Code version: 1.66.0
  • language-stylus: 1.15.0

Problem

Syntax highlighting does not work for style blocks with lang="stylus" and multiline attributes.

Without language-stylus extension, not working:

vetur

With language-stylus extension, not working:

vetur_stylus

Example block with lang="css" and multiline attributes, working:

vetur-css

This problem revealed itself when using Prettier with new singleAttributePerLine option.

Reproducible Case

<style lang="stylus" scoped>
.test
  font-size: 12px
</style>

<style
  lang="stylus"
  scoped
>
.test
  font-size: 12px
</style>

havardthom avatar Apr 08 '22 10:04 havardthom

Having the same issue here 👍 The issue is related to #3379 and #1477.

I am surprised to see that none of these issues has any activity 🤔

mlbiche avatar Apr 13 '22 09:04 mlbiche

Duplicate of #1477

yoyo930021 avatar Oct 04 '22 12:10 yoyo930021