bash-language-server icon indicating copy to clipboard operation
bash-language-server copied to clipboard

Failed to parse expression ${#}

Open Hologos opened this issue 6 years ago • 1 comments

Hi,

the code snippet below generates Failed to parse expression error.

if [[ ${#} -eq 0 ]]; then
    :
fi

Hologos avatar Nov 27 '19 08:11 Hologos

Thanks for reporting this issue. It seems to be a grammar issue.

Can you create an issue over here: https://github.com/tree-sitter/tree-sitter-bash

skovhus avatar Dec 13 '19 10:12 skovhus

This seems to have been fixed in the newer version of the grammar.

skovhus avatar Nov 25 '22 13:11 skovhus