Repository navigation
chore: update syntax grammars to vscode-motoko v0.25.1 - #459
Open
pr-automation-bot-public[bot] wants to merge 1 commit into
Open
pr-automation-bot-public[bot] wants to merge 1 commit into
pr-automation-bot-public[bot] wants to merge 1 commit into
Conversation
|
🤖 Here's your preview: https://a2gzu-ziaaa-aaaam-ae66a-cai.icp0.io |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The grammar removes the only highlighting rule for flexible, a still-supported legacy stability modifier, leaving existing Motoko code without the correct keyword scope.
1 open issue
What changed in this PR
Refreshes the Motoko TextMate grammar used by Shiki / Expressive Code to align with vscode-motoko v0.25.1.
Changes:
- Removes
flexiblefrom the Motoko keyword list. - No Candid grammar changes are included in this diff.
Verified: Checked the affected rule against the language manual and highlighting configuration. Build and rendered highlighting checks were not run.
| File | Description |
|---|---|
syntaxes/motoko.tmLanguage.json |
Updates the Motoko keyword-matching expression. |
Review effort: Balanced
| { | ||
| "comment": "other keyword", | ||
| "match": "\\b(query|composite|stable|flexible|persistent|transient|implicit|weak|mixin)\\b", | ||
| "match": "\\b(query|composite|stable|persistent|transient|implicit|weak|mixin)\\b", |
This branch has not been deployed
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
Updates Motoko and Candid TextMate grammars to vscode-motoko v0.25.1.
These grammars power syntax highlighting for
motokoandcandidcode blocks via Shiki / Expressive Code.Source:
dfinity/vscode-motoko→syntaxes/Major.tmLanguageandsyntaxes/Candid.tmLanguageTransformation: plist XML → JSON (automated by this workflow)
Test plan
npm run buildpasses