M2.1: tree-sitter PHP in crates/syntax
Parser (parse, incremental reparse from lutra_text edits), outline with UTF-16 ranges and short signatures, folding ranges, 8 MiB parse cap. Snapshot tests for five PHP 8.3 fixtures, proptests (random bytes, reparse equals fresh parse, undo round trip), ignored release timing test. Docs: architecture Syntax section, parity evidence, G4 note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d12a517009
commit
a5236acd7e
25 changed files with 1768 additions and 6 deletions
6
crates/syntax/tests/fixtures/unicode_positions.snap
vendored
Normal file
6
crates/syntax/tests/fixtures/unicode_positions.snap
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# outline
|
||||
constant ÄRGER @2:0-2:21 sel 2:6-2:11
|
||||
class Café @2:22-2:102 sel 2:28-2:32
|
||||
method naïve (string $straße): string @2:35-2:100 sel 2:51-2:56
|
||||
function grüße (string $gruß): void @3:20-3:64 sel 3:29-3:34
|
||||
# folding
|
||||
Loading…
Add table
Add a link
Reference in a new issue