v0.7.3
What's new
- Swift external scanner — Full lexical support with all 33 external tokens: operator disambiguation, raw strings with interpolation, block comments, semicolon insertion, and compiler directives. Grammar source switched to actively maintained
alex-pinkus/tree-sitter-swift. - All 206 grammars OK — Zero degraded grammars (previously 3). External scanner count up to 116.
- Pooled file parsing — Reduced parser allocations for concurrent workloads.
- Incremental fast path — Token source state snapshot/restore for leaf edits.
- File extension registration for 48 languages.
Performance (10-run medians, 500-function Go file)
| Operation | Pure Go | Native C | Ratio |
|---|---|---|---|
| Full parse | 4.20 ms | 1.76 ms | 2.4x slower |
| 1-byte edit | 1.49 μs | 102.3 μs | 69x faster |
| No-edit reparse | 2.18 ns | 101.7 μs | 46,600x faster |
Full changelog: CHANGELOG.md