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
Add UTF-8 lexer cursor and identifier regression tests #392
cross-platformIssues related to making Wave work seamlessly across multiple operating systems.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
The lexer stores byte offsets internally while diagnostic columns count Unicode scalar values. front/lexer/src/cursor.rs documents this invariant, but no tests verify it.
Scope
Test identifiers containing non-ASCII alphabetic characters.
Test lookahead and tokenization when multi-byte characters appear before operators and literals.
Trigger a lexer diagnostic after non-ASCII text and assert the human column rather than the byte offset.
Cover a newline after UTF-8 input to verify line_start is reset correctly.
Do not introduce Unicode normalization or change identifier policy.
Likely files
front/lexer/src/cursor.rs
front/lexer/src/ident.rs
A new lexer integration test
Completion criteria
Multi-byte UTF-8 input never panics or slices at an invalid boundary.
Identifier tokens preserve their original spelling.
Diagnostic line and column assertions distinguish characters from bytes.
cross-platformIssues related to making Wave work seamlessly across multiple operating systems.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity
Fix frontend contracts and native regression tests (#723)