Skip to content

chore: update syntax grammars to vscode-motoko v0.25.1 - #459

Open
pr-automation-bot-public[bot] wants to merge 1 commit into
mainfrom
chore/update-syntax-grammars-v0.25.1
Open

pr-automation-bot-public[bot] wants to merge 1 commit into
mainfrom
chore/update-syntax-grammars-v0.25.1

Conversation

@pr-automation-bot-public

Copy link
Copy Markdown
Contributor

Summary

Updates Motoko and Candid TextMate grammars to vscode-motoko v0.25.1.

These grammars power syntax highlighting for motoko and candid code blocks via Shiki / Expressive Code.

Source: dfinity/vscode-motoko → syntaxes/Major.tmLanguage and syntaxes/Candid.tmLanguage
Transformation: plist XML → JSON (automated by this workflow)

Test plan

  • Verify npm run build passes
  • Spot-check Motoko syntax highlighting on a page with code blocks (e.g., timers guide)

@pr-automation-bot-public
pr-automation-bot-public Bot requested a review from a team as a code owner November 16, 2026 09:08
Copilot AI balanced review requested due to automatic review settings November 16, 2026 09:08
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🤖 Here's your preview: https://a2gzu-ziaaa-aaaam-ae66a-cai.icp0.io

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 flexible from 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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant