Binaryify / OneDark-Pro

Atom's iconic One Dark theme for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme
MIT License
1.53k stars 289 forks source link

`<<` Causes Syntax Highlighting Problems #826

Closed StrangeRanger closed 1 month ago

StrangeRanger commented 2 months ago

Describe the bug

For some reason, the following line in my Bash code causes the syntax highlighting of OneDark-Pro to miss-highlight the code: echo "$(( (octet1 << 24) + (octet2 << 16) + (octet3 << 8) + octet4 ))"

Screenshot 2024-09-01 at 10 00 11 AM

After some experimentation, I found that I could reproduce the same problem with <<).

Screenshot 2024-09-01 at 10 28 35 AM

To be more specific, this only happens when using <<. Using <, <<<, or any other form of redirect does not reproduce the same problem. So something like echo "$((ip_int >> 24 & 255)).$((ip_int >> 16 & 255)).$((ip_int >> 8 & 255)).$((ip_int & 255))", which is in the screenshot, does not cause any problems.

To Reproduce

I've included all the information about how to reproduce it above.

Expected behavior

When using <<, I expect the syntax highlighting to work as expected rather than highlighting almost everything green.

Desktop (please complete the following information):

Binaryify commented 1 month ago

other themes have same problem, I think it's vscode's problem

StrangeRanger commented 1 month ago

I see what you mean. I'll go ahead and make an issue on VSCode's repository. Will you close this issue then, or keep it open for a while longer?

StrangeRanger commented 1 month ago

Issue has been made at https://github.com/microsoft/vscode/issues/228637

Binaryify commented 1 month ago

should I close this issue

StrangeRanger commented 1 month ago

Yes, you're good to close this issue.

Binaryify commented 1 month ago

okay