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
{{ message }}
Repository navigation
Make CR-only source line endings consistent across lexer tracking and literals #598
bugA problem that causes incorrect behavior or crashes.cross-platformIssues related to making Wave work seamlessly across multiple operating systems.help wantedThe issue requires extra attention or help from others.needs testingIssues that require additional testing or verification.
The lexer recognizes carriage return (\\r) as whitespace, but only line feed (\\n) advances the logical source line.
In skip_whitespace, \\r is consumed together with ordinary horizontal whitespace, while \\n increments line and updates line_start.
The literal scanner also treats only \\n as a raw source newline terminating a string. A lone \\r can therefore be consumed as content even though the same character is treated as source whitespace outside the literal.
This creates inconsistent behavior for CR-only source files:
token line numbers do not advance at \\r,
columns continue from the previous physical line,
raw CR inside a string does not take the same newline path as LF,
diagnostics can disagree with the physical source layout.
CRLF must remain a single newline rather than becoming two logical lines.
bugA problem that causes incorrect behavior or crashes.cross-platformIssues related to making Wave work seamlessly across multiple operating systems.help wantedThe issue requires extra attention or help from others.needs testingIssues that require additional testing or verification.
Activity
Fix frontend contracts and native regression tests (#723)