You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds PHP as a supported language via a new LanguageSpec backed by
tree-sitter-php (already bundled in tree-sitter-language-pack).
Supports functions, classes, methods, interfaces, traits, enums,
constants, return types, and PHPDoc comments. PHP 8 #[Attribute]
decorator syntax is also handled.
Updates LANGUAGE_SUPPORT.md, README.md, and SPEC.md to document
the new language. Adds test fixture and test_parse_php() to the
language test suite.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: LANGUAGE_SUPPORT.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
| Go |`.go`| tree-sitter-go | function, method, type, constant | — |`//` comments | No class hierarchy (language limitation) |
11
11
| Rust |`.rs`| tree-sitter-rust | function, type (struct/enum/trait), impl, constant |`#[attr]`|`///` and `//!` comments | Macro-generated symbols are not visible to the parser |
12
12
| Java |`.java`| tree-sitter-java | method, class, type (interface/enum), constant |`@Annotation`|`/** */` Javadoc | Deep inner-class nesting may be flattened |
0 commit comments