Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error for arithmetic expression and comma operator in for loop #45

werner-lehmann opened this issue Apr 14, 2019 · 1 comment


None yet
1 participant
Copy link

commented Apr 14, 2019

In VS Code I get parse errors for a code snippet like this:


  local x wc=0 wcx=0 k=0 N=1 w cx c d=1 pf=1
  x=$(( ( $wcx - $k ) / $N ))
  for (( cx=0, w=1;  c=$cx/$pf, c<$wc-$k;  cx+=$d, w++ )); do
    echo "$cx"


The code has been trimmed down to show the problem. See this screenshot for the squiggly lines. tree-sitter-bash version is 0.13.7, indirect dependency of the VS Code bash-ide extension.


This comment has been minimized.

Copy link

commented Apr 14, 2019

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.63. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: dashboard, app homepage and code for this bot.

@issue-label-bot issue-label-bot bot added the bug label Apr 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.