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
12
crates/syntax/tests/fixtures/broken.snap
vendored
Normal file
12
crates/syntax/tests/fixtures/broken.snap
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# outline
|
||||
namespace Broken @2:0-27:5 sel 2:10-2:16
|
||||
class Complete @4:0-10:1 sel 4:6-4:14
|
||||
method ok (): bool @6:4-9:5 sel 6:20-6:22
|
||||
method second (): void @14:4-20:1 sel 16:20-16:26
|
||||
method after_errors (): int @22:0-25:1 sel 22:9-22:21
|
||||
# folding
|
||||
5:0-10:1
|
||||
7:4-9:5
|
||||
17:4-20:1
|
||||
18:15-19:5
|
||||
23:0-25:1
|
||||
Loading…
Add table
Add a link
Reference in a new issue