fix: sync extension with current Sigil lexer #2

Merged
rdenadai merged 2 commits from fix/vscode-syntax-sync into main 2026-09-22 14:48:32 +00:00
Owner

Summary

Align the extension with the current Sigil lexer so reserved syntax receives the correct scopes and generated snippets compile.

  • Highlight imports, type, override, quantifiers, unit, macro splice $, and TitleCase special types.
  • Mark parser-rejected impl and implements as reserved syntax.
  • Correct None/Ellipsis casing and replace stale pass/none snippets with valid .../None.
  • Keep diagnostics cross-platform by retaining the uv run python -m src.main default.
  • Bump extension version to 0.2.2.

Verification

  • npm run test:grammar
  • npm run build
  • npm run package

Produces sigil-vscode-language-support-0.2.2.vsix.

## Summary Align the extension with the current Sigil lexer so reserved syntax receives the correct scopes and generated snippets compile. - Highlight imports, `type`, `override`, quantifiers, `unit`, macro splice `$`, and TitleCase special types. - Mark parser-rejected `impl` and `implements` as reserved syntax. - Correct `None`/`Ellipsis` casing and replace stale `pass`/`none` snippets with valid `...`/`None`. - Keep diagnostics cross-platform by retaining the `uv run python -m src.main` default. - Bump extension version to `0.2.2`. ## Verification - `npm run test:grammar` - `npm run build` - `npm run package` Produces `sigil-vscode-language-support-0.2.2.vsix`.
- highlight new reserved keywords, imports, override, macro splice, and special types
- correct TitleCase literals/types and remove stale invalid token scopes
- update snippets from none/pass to None/ellipsis
- use canonical bin/sigilc diagnostics wrapper defaults
- align indentation rules and word pattern with current syntax
- add grammar coverage for current lexer surface
- bump extension to v0.2.1
fix: retain cross-platform diagnostics defaults
All checks were successful
ci / build (pull_request) Successful in 9m49s
3c1277ad6a
Restore the uv Python invocation as the default compiler command.
The upstream bin/sigilc wrapper is Bash-only, so using it by default
breaks diagnostics on Windows. It remains available through settings.
Bump extension version to v0.2.2.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rdenadai/sigil-vscode-language-support!2
No description provided.