Add prec to class, simplify qualified constructor identifier
@@ -1143,25 +1143,18 @@ module.exports = grammar({
')'
),
- class: $ => choice(
- seq(
+ class: $ => prec(1, seq(
+ $._qualified_constructor_identifier,
choice(
- $.constructor_identifier,
- $.qualified_constructor_identifier
- ),
- $.type_variable_identifier
- ),
seq(
- choice(
- $.constructor_identifier,
- $.qualified_constructor_identifier
- ),
'(',
$.type_variable_identifier,
repeat1($._atype),
')'
- )
),
+ repeat1($._atype)
+ )
+ )),
equality_constraint: $ => prec(1, seq(
alias($._type_pattern, $.equality_lhs),
