Skip to content

feat: add PHP language support (11 languages total)#9

Merged
pszymkowiak merged 1 commit intomasterfrom
feat/php-swift-kotlin
Mar 23, 2026
Merged

feat: add PHP language support (11 languages total)#9
pszymkowiak merged 1 commit intomasterfrom
feat/php-swift-kotlin

Conversation

@pszymkowiak
Copy link
Contributor

Summary

  • Add PHP support: functions, methods, classes, interfaces, traits, enums
  • Swift and Kotlin skipped due to incompatible tree-sitter grammar versions
    • Swift 0.7 uses grammar v15 (tree-sitter 0.24 supports max v14)
    • Kotlin 0.3 depends on tree-sitter 0.22 (different Language type)
    • Both can be added when we upgrade to tree-sitter 0.25+

Supported languages (11)

TypeScript, JavaScript, Rust, Python, C#, Go, Java, C, C++, Ruby, PHP

Test plan

  • 54 tests passing (1 new PHP test)

- PHP: functions, methods, classes, interfaces, traits, enums
- Swift and Kotlin skipped: incompatible tree-sitter grammar versions
  (Swift needs grammar v15, Kotlin uses old tree-sitter API)
- Can be added when tree-sitter 0.25+ is adopted

Supported languages: TypeScript, JavaScript, Rust, Python, C#, Go,
Java, C, C++, Ruby, PHP

54 tests passing.
@pszymkowiak pszymkowiak merged commit 94ec393 into master Mar 23, 2026
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