Updated grammar to remove dumb stuff from arith possible values

This commit is contained in:
Maieul BOYER 2024-07-27 14:46:18 +00:00
parent 54f010969f
commit 70958ee4c1

View file

@ -362,7 +362,7 @@ module.exports = grammar({
$.arithmetic_expansion, $.arithmetic_expansion,
), ),
arithmetic_expansion: $ => seq('$((', optional($._arithmetic_expression), '))'), arithmetic_expansion: $ => seq('$((', $._arithmetic_expression '))'),
_arithmetic_expression: $ => prec(1, choice( _arithmetic_expression: $ => prec(1, choice(
$.arithmetic_literal, $.arithmetic_literal,
@ -371,7 +371,6 @@ module.exports = grammar({
$.arithmetic_binary_expression, $.arithmetic_binary_expression,
$.arithmetic_postfix_expression, $.arithmetic_postfix_expression,
$.arithmetic_parenthesized_expression, $.arithmetic_parenthesized_expression,
$.command_substitution,
)), )),
arithmetic_literal: $ => prec(1, choice( arithmetic_literal: $ => prec(1, choice(