You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Syntax highlighting has a few quirky bugs. One I've come across in dealing with other people's code (shudder) is EOL comments on while loops. These only appear to be highlighted if they are preceded by a semicolon, which isn't great.
To Reproduce
Try something bad, like putting EOL comments on while loops. That being said, GitHub's Linguist model is completely broken for comments in MATLAB code, as this demonstrates, so look at the VSCode screenshot below.
There's a discussion on the Linguist repo about issues with other languages, and I added a comment there regarding GitHub's incorrect parsing of MATLAB comments (github-linguist/linguist#6668 (comment)). Is that a Linguist issue, or an issue provided by this grammar engine?
Describe the bug
Syntax highlighting has a few quirky bugs. One I've come across in dealing with other people's code (shudder) is EOL comments on while loops. These only appear to be highlighted if they are preceded by a semicolon, which isn't great.
To Reproduce
Try something bad, like putting EOL comments on while loops. That being said, GitHub's Linguist model is completely broken for comments in MATLAB code, as this demonstrates, so look at the VSCode screenshot below.
Expected behavior
Consistent highlighting of EOL comments.
Screenshots
Useful Information
The text was updated successfully, but these errors were encountered: