Open
Description
declare -i SOMEVAR=0
# Hover and get references do not work with these statements
((++SOMEVAR))
((SOMEVAR++))
((SOMEVAR ++))
# But this works fine
((++ SOMEVAR))
Syntax-highlighting is also broken unless the fourth statement is used. Not sure if this means that it is a treesitter grammar issue and not a bashls issue.
Unfortunately shfmt
also changes ((++ SOMEVAR))
to ((++SOMEVAR))
.