-
Notifications
You must be signed in to change notification settings - Fork 65
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
Rust: "different styles between \r and \n" at end of line comments #34
Comments
That loop appears to have two jobs:
Line state is retrieved near the top of The current code calls The loop is incrementing |
Done and done: LexRust-Prefer-LineEnd-to-While-Loop.zip A second patch adds new tests; the Some of the colours in these SciTE captures were altered for better contrast: |
While trying out a patch for #33,
TestLexers
found this additional problem:SciTE (5.1.4) visually confirmed premature style switching after line comments in a file saved with Windows EOLs:
This patch attempts to correct the EOL splitting: LexRust-Fix-EOL-splitting-at-comment-ends.zip
It would be ideal to have an omnibus lexer test (e.g. "AllStyles.rs"), but I leave that for someone who knows the language better.
The text was updated successfully, but these errors were encountered: