Do you have any good source of sample files that could be used as unit tests?
Before anything, you'll need to apply this patch: Fix-EOL-splitting-in-LexVisualProlog.diff.txt
Lexilla's testing protocol has dramatically improved over the past year, and it now checks for consistency across EOL modes. A hard failure is raised if the CR and LF of a Windows EOL is in two different styles, e.g.,
In fairness to the lexer, the problem really comes from the flawed implementation of StyleContext::atLineEnd
(mitigated in Lexilla 5.1.0). It doesn't account for newlines longer than a single character 1 , so you can end up with <false>CR<true>LF
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.