Single line // ... comments are not valid for postcss's default parser. VSCode's "Toggle Line Comment" inside lang="postcss" with Vetur should generate /* ... */ instead.
<style lang="postcss">
// @import '..';
</style>
Platform: macOS 10.12.6
Vetur version: 0.12.6
VS Code version: 1.28.0 Insider
I have the same problem, it also appears in separate *.css files which have language mode PostCSS set. When I switch off Vetur, I get the correct /* */comments, when switched on, I get the // comment style.
Sounds good. CSS spec also does not include // comment. It's allowed only in SCSS.
Most helpful comment
Sounds good. CSS spec also does not include
//comment. It's allowed only in SCSS.