@willbooster/tree-sitter-typescript 1.1.2 → 1.1.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.
@@ -167,6 +167,16 @@ module.exports = function defineGrammar(dialect) {
167
167
  field('arguments', $.arguments)
168
168
  )
169
169
  ),
170
+ // A tag with type arguments is parsed like a generic call. Optional type arguments in the `template_call`
171
+ // alternative below would make the parser commit to a tagged template at the `<` of `f<T>(x)`.
172
+ prec(
173
+ 'call',
174
+ seq(
175
+ field('function', $.expression),
176
+ field('type_arguments', $.type_arguments),
177
+ field('arguments', $.template_string)
178
+ )
179
+ ),
170
180
  prec(
171
181
  'template_call',
172
182
  seq(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-typescript",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "TypeScript and TSX grammars for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -50,7 +50,7 @@
50
50
  "@willbooster/oxfmt-config": "1.2.2",
51
51
  "@willbooster/oxlint-config": "1.4.8",
52
52
  "@willbooster/wb": "22.11.5",
53
- "@willbooster/web-tree-sitter": "1.0.0",
53
+ "@willbooster/web-tree-sitter": "1.0.7",
54
54
  "conventional-changelog-conventionalcommits": "10.4.0",
55
55
  "lefthook": "2.1.14",
56
56
  "oxfmt": "0.70.0",
Binary file
Binary file
package/tree-sitter.json CHANGED
@@ -77,7 +77,7 @@
77
77
  }
78
78
  ],
79
79
  "metadata": {
80
- "version": "1.1.2",
80
+ "version": "1.1.4",
81
81
  "license": "MIT",
82
82
  "description": "TypeScript and TSX grammars for tree-sitter",
83
83
  "authors": [