Add support for lang=scss/less in STYLE #6

Closed
yutent wants to merge 1 commit from main into main
yutent commented 2023-04-13 09:22:02 +02:00 (Migrated from github.com)
<template>
  <h1>hello world</h1>
</template>

<script>
export default { }
</script>

<style lang="scss">
h1 {color: blue}
</style>

```vue <template> <h1>hello world</h1> </template> <script> export default { } </script> <style lang="scss"> h1 {color: blue} </style> ```
marijnh commented 2023-04-13 09:25:21 +02:00 (Migrated from github.com)

The lang-css package does not actually parse Less and SCSS syntax, does it?

The lang-css package does not actually parse Less and SCSS syntax, does it?
yutent commented 2023-04-13 09:32:00 +02:00 (Migrated from github.com)

The lang-css package does not actually parse Less and SCSS syntax, does it?

Yes, it doesn't fully support scss/less, but it supports basic scss/less syntax highlighting。

> The lang-css package does not actually parse Less and SCSS syntax, does it? Yes, it doesn't fully support scss/less, but it supports basic scss/less syntax highlighting。
marijnh commented 2023-04-13 09:39:06 +02:00 (Migrated from github.com)

It's easy enough to define this mapping locally if you want it. I don't want to have semi-correct things like this in the default behavior though.

It's easy enough to define this mapping locally if you want it. I don't want to have semi-correct things like this in the default behavior though.
yutent commented 2023-04-13 09:43:40 +02:00 (Migrated from github.com)

OK, Thanks for answering.

OK, Thanks for answering.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lang-html!6
No description provided.