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.,

vpl-eol-splits

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

Footnotes

  1. https://github.com/ScintillaOrg/lexilla/blob/a35a59845e793d9d37d249cf097e71fecc5f4bcd/lexlib/StyleContext.h#L35-L40


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/pull/3171/c1126938625@github.com>