[PR #4434] feat: add Swift syntax highlighting support #10971

Closed
opened 2026-02-16 18:15:44 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4434

State: closed
Merged: Yes


Adds Swift syntax highlighting support via tree-sitter parser

Changes

  • Added Swift parser configuration to parsers-config.ts
  • Uses tree-sitter-swift v0.7.1 release from alex-pinkus/tree-sitter-swift
  • Uses parser repo highlights query (nvim-treesitter version has incompatible #lua-match? predicates) and nvim-treesitter locals query

Testing

  • Verified Swift syntax highlighting works correctly in OpenCode
  • Parser downloads and caches properly from GitHub releases
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4434 **State:** closed **Merged:** Yes --- Adds Swift syntax highlighting support via tree-sitter parser ## Changes - Added Swift parser configuration to `parsers-config.ts` - Uses tree-sitter-swift v0.7.1 release from alex-pinkus/tree-sitter-swift - Uses parser repo highlights query (nvim-treesitter version has incompatible `#lua-match?` predicates) and nvim-treesitter locals query ## Testing - Verified Swift syntax highlighting works correctly in OpenCode - Parser downloads and caches properly from GitHub releases
yindo added the pull-request label 2026-02-16 18:15:44 -05:00
yindo closed this issue 2026-02-16 18:15:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10971