Robin Haberkorn:
> here's a patch that adds a new SC_LINE_END_TYPE_NONE,
> which disables the special treatment of EOL characters.
> When enabled, Scintilla will lay out the entire document
> on a single line.
The purpose of the LineEndTypesSupported method is to allow lexers to
*opt in* to new forms of line end. This is required because the line
structure of files is an important element in how they are lexed.
Lexers often store data about portions of the file indexed by line
number and this may be desynchronized when they encounter unexpected
line end modes.
The patch forces allowing LineEndType::None in many different cases as
it becomes the default. LineEndType::Default is the option that each
lexer has been written to and tested with in the past and should
continue to be the default unless a lexer specifically opts in to
allowing LineEndType::None.
> I am using this to turn Scintilla into a command-line
> widget for SciTECO, where command-lines are not terminated
> by Enter and may have to fit into a single line.
That sounds like it only needs to be turned on for the "null" lexer.
I have only looked at this a little and there may be further issues.
Neil