tree-sitter-bash icon indicating copy to clipboard operation
tree-sitter-bash copied to clipboard

if ! var=$(func) parser failure

Open pschmitt opened this issue 4 years ago • 1 comments

Hi, the following code generated a parser failure (but is valid bash):

if ! x=$(false)
then
  :
fi

pschmitt avatar May 28 '20 17:05 pschmitt

After investigating, it seems that the issue here is that the parser expects the condition to be terminated with a semicolon

if ! x=$(false);
then
  :
fi

parses correctly.

TravonteD avatar Jul 21 '20 13:07 TravonteD

Might be fixed by #183

Ordoviz avatar Aug 05 '23 06:08 Ordoviz