Skip to content

Commit a76c359

Browse files
committed
fix: support aliasing type for generic-type
1 parent 8f5c6de commit a76c359

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

grammar.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,11 @@ module.exports = grammar({
424424

425425
),
426426

427-
generic_type: $ => seq(
427+
generic_type: $ => prec.left(seq(
428428
$._type_identifier,
429-
$.type_arguments
430-
),
429+
$.type_arguments,
430+
optional($.as_aliasing_type)
431+
)),
431432

432433
type_arguments: $ => seq(
433434
'<',

0 commit comments

Comments
 (0)