Skip to content

fix(tui): pin Swift highlights to the parser version - #49482

Closed
takhir-iota wants to merge 1 commit into
anomalyco:devfrom
takhir-iota:codex/swift-highlighting
Closed

takhir-iota wants to merge 1 commit into
anomalyco:devfrom
takhir-iota:codex/swift-highlighting

Conversation

@takhir-iota

Copy link
Copy Markdown

Issue for this PR

Fixes #46707

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Match the Swift highlight query to the pinned 0.7.1 parser. The query from main references nil_literal, which that parser cannot compile.

How did you verify your code works?

The original query fails against the 0.7.1 WASM; the pinned query compiles and produces 11 captures for a Swift sample. Checked the Code renderer and TUI typecheck.

Screenshots / recordings

OpenTUI Code renderer capture:

Before and after

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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.

[BUG]: No Swift syntax highlighting — highlights.scm from main is incompatible with pinned tree-sitter-swift 0.7.1 wasm

2 participants