-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Replace Vue Grammar #7086
base: main
Are you sure you want to change the base?
Replace Vue Grammar #7086
Conversation
It's fine in as much as Linguist and the syntax highlighter don't care. It might not be fine for users as these messages indicate that those particular scopes can't be found so the rules from them won't be applied when highlighting a file. |
The CI was failing with the following error:
And I assumed that I have to set Am I in the right direction? Thank you for taking your time to review |
Yup. That's the right thing to do. |
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.
LGTM. Thanks.
Note: this PR will not be merged until close to when the next release is made. See here for more details.
This PR replaces the Vue.js grammar vendor from vuejs/vue-syntax-highlight to vuejs/language-tools.
The grammar file is located at https://github.com/vuejs/language-tools/blob/master/extensions/vscode/syntaxes/vue.tmLanguage.json
Description
Background:
There have been some issues stating that Vue's syntax breaks when certain newly introduced TypeScript syntax are present, such as optional chaining operator (
?
).Related Issues:
Fix:
Since vuejs/vue-syntax-highlight has long been not updated (last commit is 4 years ago), and also there's even a collaborator of
vuejs/language-tools
suggesting linguist should switch Vue's grammar vendor tovuejs/language-tools
(see this comment), here's the PR.I'm not exactly sure if this really fixes all the problems, but I followed the CONTRIBUTING.md and just ran the following:
In the script log, I found the following warnings:
Is this fine?
Checklist: