@willbooster/tree-sitter-typescript 1.0.0 → 1.1.1
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
CHANGED
|
@@ -288,6 +288,7 @@ module.exports = function defineGrammar(dialect) {
|
|
|
288
288
|
choice(
|
|
289
289
|
previous,
|
|
290
290
|
seq('export', 'type', $.export_clause, optional($._from_clause), $._semicolon),
|
|
291
|
+
seq('export', 'type', choice('*', $.namespace_export), $._from_clause, $._semicolon),
|
|
291
292
|
seq('export', '=', $.expression, $._semicolon),
|
|
292
293
|
seq('export', 'as', 'namespace', $.identifier, $._semicolon)
|
|
293
294
|
),
|
|
@@ -700,7 +701,14 @@ module.exports = function defineGrammar(dialect) {
|
|
|
700
701
|
prec(
|
|
701
702
|
'call',
|
|
702
703
|
seq(
|
|
703
|
-
field(
|
|
704
|
+
field(
|
|
705
|
+
'name',
|
|
706
|
+
choice(
|
|
707
|
+
$._type_identifier,
|
|
708
|
+
$.nested_type_identifier,
|
|
709
|
+
alias($._type_query_member_expression_in_type_annotation, $.member_expression)
|
|
710
|
+
)
|
|
711
|
+
),
|
|
704
712
|
field('type_arguments', $.type_arguments)
|
|
705
713
|
)
|
|
706
714
|
),
|
package/package.json
CHANGED
package/tree-sitter-tsx.wasm
CHANGED
|
Binary file
|
|
Binary file
|
package/tree-sitter.json
CHANGED
package/tsx/src/node-types.json
CHANGED