{{ message }}
Replace Vue Grammar#7086
Merged
Merged
Conversation
yuichkun
commented
Oct 12, 2024
Member
lildude
reviewed
Oct 14, 2024
Contributor
Author
|
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 |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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-toolssuggesting 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: