Add function_identifier rule
@@ -302,12 +302,14 @@ module.exports = grammar({
constructor_symbol: $ => prec.left(seq(':', repeat($._constructor_symbol))),
type_signature: $ => seq(
- alias($._identifier, $.function_identifier),
+ $.function_identifier,
'::',
optional($.context),
$._type
),
+ function_identifier: $ => commaSep1($._identifier),
+
_type: $ => seq(
$._expression,
optional(seq('->', $._type))
