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

Bash IDE broken syntax highlighting

Open Ri0n opened this issue 6 months ago • 1 comments

Code editor

vscode

Platform

Ubuntu 24.04

Version

No response

What steps will reproduce the bug?

No response

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

No response

What do you see instead?

next line breaks synxtax highlighting in the remaining part of file.

portmask=$(( portmask | (1 << $p) ))

Additional information

Bash IDE 1.43.0 No idea which version of the language server coz bash-language-server -v doesn't work

Ri0n avatar Jun 06 '25 17:06 Ri0n

to be precise << breaks syntax

Ri0n avatar Jun 06 '25 18:06 Ri0n

You probably want to report it here as this is what powers the syntax highlighting in vscode

https://github.com/microsoft/vscode-textmate

Here is the file:

https://github.com/microsoft/vscode-textmate/blob/main/test-cases/themes/syntaxes/Shell-Unix-Bash.tmLanguage.json

It's this that breaks it <<) and this might be why

https://github.com/microsoft/vscode-textmate/blob/main/test-cases/themes/syntaxes/Shell-Unix-Bash.tmLanguage.json#L306

userdocs avatar Jul 16 '25 21:07 userdocs

ah thanks. I didn't know it's unrelated.

Ri0n avatar Jul 16 '25 21:07 Ri0n