diff --git a/grammar.js b/grammar.js index 98fb4bb..8f445f8 100644 --- a/grammar.js +++ b/grammar.js @@ -369,7 +369,7 @@ module.exports = grammar({ $.polyvar_identifier, optional($.polyvar_parameters), ), - $._type_identifier + $._inline_type ) ), diff --git a/test/corpus/type_declarations.txt b/test/corpus/type_declarations.txt index e1d8906..1c0b89d 100644 --- a/test/corpus/type_declarations.txt +++ b/test/corpus/type_declarations.txt @@ -220,6 +220,7 @@ type t = [> type foo<'a> = [> #Blue | #DeepBlue | #LightBlue ] as 'a +type t<'w> = [M.t<'w>] --- @@ -243,7 +244,16 @@ type foo<'a> = [> #Blue | #DeepBlue | #LightBlue ] as 'a (polyvar_declaration (polyvar_identifier)) (polyvar_declaration (polyvar_identifier)) (polyvar_declaration (polyvar_identifier)) - (as_aliasing_type (type_identifier))))) + (as_aliasing_type (type_identifier)))) + + (type_declaration + (type_identifier) + (type_parameters (type_identifier)) + (polyvar_type + (polyvar_declaration + (generic_type + (type_identifier_path (module_identifier) (type_identifier)) + (type_arguments (type_identifier))))))) =========================================== Function