@willbooster/tree-sitter-php 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,8 +10,8 @@ PHP grammars for [tree-sitter](https://github.com/tree-sitter/tree-sitter), fork
10
10
  [tree-sitter/tree-sitter-php](https://github.com/tree-sitter/tree-sitter-php). We are grateful
11
11
  to its authors and contributors. This is not an official release of that project.
12
12
 
13
- This fork keeps the grammars and the queries of upstream's version 0.24.2. Its external scanner adapts to the generated
14
- array API and fixes incremental heredoc parsing. It generates the parsers with the
13
+ This fork builds on upstream's version 0.24.2 grammars and queries with support for absolute grouped namespace imports.
14
+ Its external scanner adapts to the generated array API and fixes incremental heredoc parsing. It generates the parsers with the
15
15
  [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parsers carry that fork's own ABI
16
16
  number, so they load only with its runtime (`willbooster-tree-sitter`, `@willbooster/web-tree-sitter`), version 2.0.0
17
17
  or later, and that runtime loads no parser that upstream's generator wrote.
@@ -290,6 +290,7 @@ module.exports = function defineGrammar(dialect) {
290
290
 
291
291
  _namespace_use_group: $ => seq(
292
292
  field('type', optional($._namespace_use_type)),
293
+ optional('\\'),
293
294
  $.namespace_name,
294
295
  '\\',
295
296
  field('body', $.namespace_use_group),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-php",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "PHP grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -49,19 +49,19 @@
49
49
  "@vitest/browser-playwright": "5.0.3",
50
50
  "@willbooster/oxfmt-config": "1.2.2",
51
51
  "@willbooster/oxlint-config": "1.4.8",
52
- "@willbooster/wb": "22.24.0",
53
- "@willbooster/web-tree-sitter": "2.0.1",
54
- "conventional-changelog-conventionalcommits": "10.4.0",
55
- "lefthook": "2.1.16",
56
- "oxfmt": "0.71.0",
57
- "oxlint": "1.86.0",
58
- "oxlint-tsgolint": "7.0.2003",
59
- "playwright": "1.63.0",
52
+ "@willbooster/wb": "22.26.1",
53
+ "@willbooster/web-tree-sitter": "2.0.25",
54
+ "conventional-changelog-conventionalcommits": "10.4.1",
55
+ "lefthook": "2.2.1",
56
+ "oxfmt": "0.72.0",
57
+ "oxlint": "1.87.0",
58
+ "oxlint-tsgolint": "7.0.2004",
59
+ "playwright": "1.64.0",
60
60
  "semantic-release": "25.0.9",
61
61
  "sort-package-json": "4.0.0",
62
62
  "typescript": "7.0.2",
63
63
  "vitest": "5.0.3",
64
- "wrangler": "4.147.0"
64
+ "wrangler": "4.149.0"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@willbooster/web-tree-sitter": "^2.0.0"
Binary file
Binary file
package/tree-sitter.json CHANGED
@@ -33,7 +33,7 @@
33
33
  }
34
34
  ],
35
35
  "metadata": {
36
- "version": "1.0.2",
36
+ "version": "1.0.4",
37
37
  "license": "MIT",
38
38
  "description": "PHP grammar for tree-sitter",
39
39
  "authors": [