Skip to content

Updates - #237

Merged
amaanq merged 5 commits into
tree-sitter:masterfrom
amaanq:updates
May 4, 2024
Merged

amaanq merged 5 commits into
tree-sitter:masterfrom
amaanq:updates

Conversation

@amaanq

@amaanq amaanq commented May 4, 2024 •

Copy link
Copy Markdown
Member

Closes #234

@amaanq

amaanq commented May 4, 2024

Copy link
Copy Markdown
Member Author

/cc @calebdw you're probably interested 😁

@amaanq
amaanq merged commit d5e1bfe into tree-sitter:master May 4, 2024
@calebdw

calebdw commented May 5, 2024

Copy link
Copy Markdown
Collaborator

@amaanq, thanks!

I guess I was missing the token.immediate in the string_content rule...

I have a few questions though:

  • it looks like you removed the parse examples script...is there any way to run this outside of ci?
  • there seems to be a lot of string_contents in the added testcase:
                (string
                  (string_content)
                  (string_content)
                  (string_content)
                  (string_content)
                  (string_content)
                  (string_content)
                  (string_content)
                  (escape_sequence)
                  (string_content)
                  (string_content))
    but should they not be condensed into a single node on either side of the escape sequence?
                (string
                  (string_content)
                  (escape_sequence)
                  (string_content))
  • it looks like all of the build scripts in the package.json were replaced by the prebuildify? If so that's pretty neat

@amaanq

amaanq commented May 5, 2024

Copy link
Copy Markdown
Member Author

huh good point, I'll look at the string stuff in a bit

as to running examples outside of ci, no not really, since it was just cluttering the repo imo - if CI fails there's an option to make it upload the failed files (check example in parse-action repo), and so you can just download it from there - otherwise for local dev you can just copy the git clone commands in the ci file, and run ts p examples/**/*.php -q

yeah prebuildify is very nice, esp now that we've moved to napi from nan

Comment thread common/scanner.h Resolved
Roardom added a commit to Roardom/zed-php that referenced this pull request Dec 16, 2025
To v0.24.2 and v0.1.7 respectfully. Enables features of PHP 8.4 and 8.5.

- tree-sitter/tree-sitter-php#275
  - `php_end_tag` was added
  - `callable` is no longer a keyword
- tree-sitter/tree-sitter-php#237
  - `string_value` was replaced with `string_content`
  - `modifier` field was removed from `class_declaration`
- Various
  - `yield` and `from` are converted to `yield` and `yield from`
Roardom added a commit to Roardom/zed-php that referenced this pull request Dec 16, 2025
To v0.24.2 and v0.1.7 respectively. Enables features of PHP 8.4 and 8.5.

- tree-sitter/tree-sitter-php#275
  - `php_end_tag` was added
  - `callable` is no longer a keyword
- tree-sitter/tree-sitter-php#237
  - `string_value` was replaced with `string_content`
  - `modifier` field was removed from `class_declaration`
- Various
  - `yield` and `from` are converted to `yield` and `yield from`
Roardom added a commit to Roardom/zed-php that referenced this pull request Jan 29, 2026
To v0.24.2 and v0.1.7 respectively. Enables features of PHP 8.4 and 8.5.

- tree-sitter/tree-sitter-php#275
  - `php_end_tag` was added
  - `callable` is no longer a keyword
- tree-sitter/tree-sitter-php#237
  - `string_value` was replaced with `string_content`
  - `modifier` field was removed from `class_declaration`
- Various
  - `yield` and `from` are converted to `yield` and `yield from`
MrSubidubi pushed a commit to zed-extensions/php that referenced this pull request Feb 2, 2026
To v0.24.2 and v0.1.7 respectively. Enables features of PHP 8.4 and 8.5.

- tree-sitter/tree-sitter-php#275
  - `php_end_tag` was added
  - `callable` is no longer a keyword
- tree-sitter/tree-sitter-php#237
  - `string_value` was replaced with `string_content`
  - `modifier` field was removed from `class_declaration`
- Various
  - `yield` and `from` are converted to `yield` and `yield from`
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.

Parsing error

2 participants