Commit 2b82cf9
committed
fix: CRLF newline handling and error span rendering
Previously, newline detection operated per character, causing CRLF to be
treated as two separate newlines. This resulted in incorrect line numbers,
extra blank lines, and misaligned error spans on Windows inputs.
This change introduces CRLF-aware newline parsing while preserving support
for LF, CR, and Unicode newline characters.
Also fixes:
- incorrect line/column calculation for multi-line spans
- UTF-16 column alignment for multi-byte characters
- off-by-one error in multiline underline rendering
- zero-length spans not displaying a caret
Error rendering is now consistent across platforms and input encodings.
Merge after PR #2571 parent 77a9f5e commit 2b82cf9
2 files changed
Lines changed: 511 additions & 181 deletions
0 commit comments