Simplify variable and constructor symbols
@@ -341,18 +341,8 @@ module.exports = grammar({
)
),
- variable_symbol: $ => prec.right(seq(
- optional('('),
- repeat1($._symbol),
- optional(')')
- )),
-
- constructor_symbol: $ => prec.left(1, seq(
- optional('('),
- ':',
- repeat($._symbol),
- optional(')')
- )),
+ variable_symbol: $ => seq($._variable_symbol, repeat($._variable_symbol)),
+ constructor_symbol: $ => seq(':', repeat($._constructor_symbol)),
type_signature: $ => seq(
$._identifier,
