tree-sitter-bash
tree-sitter-bash copied to clipboard
"failed to parse expression" with semicolon or parens inside variable expansion

From the manjaro bashrc
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.94. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
I have something similar
case "$TERM" in
xterm* | rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*) ;;
esac
[program](https://tree-sitter.github.io/tree-sitter/playground#) [0, 0] - [6, 0]
[case_statement](https://tree-sitter.github.io/tree-sitter/playground#) [0, 0] - [5, 4]
value: [string](https://tree-sitter.github.io/tree-sitter/playground#) [0, 5] - [0, 12]
[simple_expansion](https://tree-sitter.github.io/tree-sitter/playground#) [0, 6] - [0, 11]
[variable_name](https://tree-sitter.github.io/tree-sitter/playground#) [0, 7] - [0, 11]
[case_item](https://tree-sitter.github.io/tree-sitter/playground#) [1, 0] - [3, 3]
value: [word](https://tree-sitter.github.io/tree-sitter/playground#) [1, 0] - [1, 6]
value: [word](https://tree-sitter.github.io/tree-sitter/playground#) [1, 9] - [1, 14]
[variable_assignment](https://tree-sitter.github.io/tree-sitter/playground#) [2, 1] - [2, 65]
name: [variable_name](https://tree-sitter.github.io/tree-sitter/playground#) [2, 1] - [2, 4]
value: [string](https://tree-sitter.github.io/tree-sitter/playground#) [2, 5] - [2, 65]
[expansion](https://tree-sitter.github.io/tree-sitter/playground#) [2, 13] - [2, 47]
[ERROR](https://tree-sitter.github.io/tree-sitter/playground#) [2, 15] - [2, 30]
[variable_name](https://tree-sitter.github.io/tree-sitter/playground#) [2, 15] - [2, 28]
[word](https://tree-sitter.github.io/tree-sitter/playground#) [2, 28] - [2, 30]
[expansion_flags](https://tree-sitter.github.io/tree-sitter/playground#) [2, 30] - [2, 46]
[simple_expansion](https://tree-sitter.github.io/tree-sitter/playground#) [2, 60] - [2, 64]
[variable_name](https://tree-sitter.github.io/tree-sitter/playground#) [2, 61] - [2, 64]
[case_item](https://tree-sitter.github.io/tree-sitter/playground#) [4, 0] - [4, 5]
value: [word](https://tree-sitter.github.io/tree-sitter/playground#) [4, 0] - [4, 1]
Sorry if it's not the same error.