-
Notifications
You must be signed in to change notification settings - Fork 4
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
Left shift is being recognized as heredoc #93
Comments
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 😅 |
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
<#93 (comment)>,
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 |
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 microsoft/vscode#215908
The text was updated successfully, but these errors were encountered: