-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enable syntax highlighting for vue files using <script setup> syntax #2918
base: master
Are you sure you want to change the base?
Conversation
runtime/syntax/vue.yaml
Outdated
- default: | ||
start: "<script[ ]+setup>" | ||
end: "</script>" | ||
rules: | ||
- include: "javascript" |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
runtime/syntax/vue.yaml
Outdated
- default: | ||
start: "<script[ ]+setup[ ]+lang=(\"ts\"|'ts')>" | ||
end: "</script>" | ||
rules: | ||
- include: "typescript" |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
runtime/syntax/vue.yaml
Outdated
- default: | ||
start: "<style[ ]+scoped.*?>" | ||
end: "</style.*?>" | ||
limit-group: symbol.tag | ||
rules: | ||
- include: "css" |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Thank you for the feedback. I attempted to address your suggestions in my latest commit. I'm also simplifying the |
runtime/syntax/vue.yaml
Outdated
|
||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You added unintended white spaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JoeKar . Got it
Addresses the syntax highlighting issue raised in #2381