By 3.2 do you mean 3.2.4 and earlier or 3.2.5 which is where support for the Unicode line end PS and LS characters was added.
Tested with 3.2.3. Current Scintilla doesn't trigger atLineEnd when line end is the last character in the file.
This change may fix the line end issue
It did fix the issue for me.
Line end detection can be written as
(sc.atLineEnd || sc.ch == '\n' || sc.ch == '\r')
but this often leads to different styles for the CR and LF in a Windows line end. Some current lexers do this and its been a recurring cause of problems, mostly when the lexer developer only works on one platform or the other. This is one of the reasons for implementing atLineEnd and why it is preferred.
Separate magic hash changes from line ends changes.
Fixed folder a bit
- Fixed incoherent folding at end of the file
- Comments are now folded with fold.compact
- Comment blocks are now treated as whitespace by the folder
Log in to post a comment.