The line char lineBuffer[1024] = ""; in ColouriseYAMLDoc() cause it.
There are similar bugs already reported, but for other lexers.
F:\Libs\scintilla\lexers>grep -nr "lineBuffer\[1024\]"
LexBatch.cxx:469: char lineBuffer[1024];
LexMake.cxx:118: char lineBuffer[1024];
LexMetapost.cxx:125: char lineBuffer[1024] ;
LexProps.cxx:82: char lineBuffer[1024];
LexTeX.cxx:128: char lineBuffer[1024] ;
LexYAML.cxx:206: char lineBuffer[1024] = "";
The 1024 bytes limit will cause another bug for multibyte character in LayoutLine:
line break will be added inside multibyte characters that across the style boundary, each/some part will be drawn as hex code.
remains three lexers:
TeX and Metapost aren't performing byte-level styling with their 1024-byte strings. They are looking for
interface=xand%D \\modulefrom the file start to determine the language and set of keywords.Fixed YAML with https://github.com/ScintillaOrg/lexilla/commit/d1c07a4a9863288d0fbf4d1c0b6250b88c4db323 .