Open alexr00 opened 4 months ago
Facing this exact issue as well. Seems other editors have the exact same issue. When searching, I found numerous reports of this for Vim, and I am also experiencing this with the Kate editor.
Is there a workaround in the meantime? Is there a comment I can put somewhere to temporarily correct the highlighting? I maintain a large Bash script and this is going to cause broken highlighting for a few thousand lines :sweat_smile:
There is a workaround using the power operator (). Devide or multiply 2(shift num) inside the arithmetic operator.
E.g)$(( a << 3 )) to $(( a *(2**3) ))
On Sun, Jul 14, 2024 at 1:13 PM Eamonn Rea @.***> wrote:
Facing this exact issue as well. Seems other editors have the exact same issue. When searching, I found numerous reports of this for Vim, and I am also experiencing this with the Kate editor.
Is there a workaround in the meantime? Is there a comment I can put somewhere to temporarily correct the highlighting? I maintain a large Bash script and this is going to cause broken highlighting for a few thousand lines 😅
— Reply to this email directly, view it on GitHub https://github.com/jeff-hykin/better-shell-syntax/issues/93#issuecomment-2227435860, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALXQNNQPJ5ZQ2HVJDIIOGQTZMK5TFAVCNFSM6AAAAABJRY3CB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGQZTKOBWGA . You are receiving this because you were mentioned.Message ID: @.***>
should be fixed on v1.10.0!
@jeff-hykin is this one that you plan to port to master
?
@jeff-hykin is this one that you plan to port to
master
?
Yes, thanks for reminding me
The code with a problem is:
It looks like:
The scopes:
It should look like:
After the unexpected
heredoc
scope, the following lines end up with a heredoc scope, when instead they should be colored similarly to line 3.Originally from @skyp0714 in https://github.com/microsoft/vscode/issues/215908