@willbooster/tree-sitter-typescript 1.1.2 → 1.1.3
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/common/defineGrammar.js +10 -0
- package/package.json +1 -1
- package/tree-sitter-tsx.wasm +0 -0
- package/tree-sitter-typescript.wasm +0 -0
- package/tree-sitter.json +1 -1
package/common/defineGrammar.js
CHANGED
|
@@ -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
package/tree-sitter-tsx.wasm
CHANGED
|
Binary file
|
|
Binary file
|