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 • 2 comments

Hi,

the code snippets below generates Failed to parse expression errors.

running_status_current_length=$(( (running_status_current_length + 1) % running_status_max_length ))
local number_of_lines=$(( (1 + 1 + number_of_systems) * number_of_transports ))

Attaching screenshot to see what exactly it cannot parse.

Snímek obrazovky 2019-11-27 v 9 41 57 Snímek obrazovky 2019-11-27 v 9 42 20

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

screen_shot_at_2020-08-01T16:50:11-04:00

second this.

YHRen avatar Aug 01 '20 20:08 YHRen

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

skovhus avatar Nov 25 '22 13:11 skovhus