From 41913a8d448f4f95a7819bfbc90ddf17b97cd84e Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 6 Dec 2025 13:54:14 +0100 Subject: feat(bash): update parser Breaking change: removed double parenthesis as valid opening to arithmetic expansion. (Only `$((` is allowed according to the manual.) --- lua/nvim-treesitter/parsers.lua | 2 +- tests/query/highlights/bash/double-parens.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 13b481140..2791d19a8 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -77,7 +77,7 @@ return { }, bash = { install_info = { - revision = '20f55fb9663568f16ebceaac7673d2aa530add46', + revision = 'a06c2e4415e9bc0346c6b86d401879ffb44058f7', url = 'https://github.com/tree-sitter/tree-sitter-bash', }, maintainers = { '@TravonteD' }, diff --git a/tests/query/highlights/bash/double-parens.sh b/tests/query/highlights/bash/double-parens.sh index 8d841d170..7f9209713 100644 --- a/tests/query/highlights/bash/double-parens.sh +++ b/tests/query/highlights/bash/double-parens.sh @@ -1,6 +1,6 @@ -if (( $(tree-sitter parse test/Petalisp/**/*.lisp -q | wc -l) > 2 )); then -# ^ @punctuation.special -# ^ @punctuation.special -# ^ @punctuation.bracket +if $(( $(tree-sitter parse test/Petalisp/**/*.lisp -q | wc -l) > 2 )); then +# ^ @punctuation.special +# ^ @punctuation.special +# ^ @punctuation.bracket exit 1 fi -- cgit v1.2.3-70-g09d2