From 70958ee4c13b92ddea5388f852bac57e10d04edd Mon Sep 17 00:00:00 2001 From: Maieul BOYER Date: Sat, 27 Jul 2024 14:46:18 +0000 Subject: [PATCH] Updated grammar to remove dumb stuff from arith possible values --- .tree-sitter-sh/grammar.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.tree-sitter-sh/grammar.js b/.tree-sitter-sh/grammar.js index 3a81308c..e91aabfc 100644 --- a/.tree-sitter-sh/grammar.js +++ b/.tree-sitter-sh/grammar.js @@ -362,7 +362,7 @@ module.exports = grammar({ $.arithmetic_expansion, ), - arithmetic_expansion: $ => seq('$((', optional($._arithmetic_expression), '))'), + arithmetic_expansion: $ => seq('$((', $._arithmetic_expression '))'), _arithmetic_expression: $ => prec(1, choice( $.arithmetic_literal, @@ -371,7 +371,6 @@ module.exports = grammar({ $.arithmetic_binary_expression, $.arithmetic_postfix_expression, $.arithmetic_parenthesized_expression, - $.command_substitution, )), arithmetic_literal: $ => prec(1, choice(