With the recent improved Ruby lexer requiring 6 bits of styling
information, expecting containers to know what value to plug into the
StyleBits property for each lexer became less reasonable. A new
StyleBitsNeeded property reports how many bits the current lexer needs
for lexers set within Scintilla. It does not work for container based
lexers, always returning 5 in this situation. Most containers can just
use code similar to SciTE:
SendEditor(SCI_SETSTYLEBITS, SendEditor(SCI_GETSTYLEBITSNEEDED));
   This is not done automatically as it would not be correct for
container based lexers and may clash with other usage patterns. The
LexerModule initialisation performed by each lexer now takes a final
argument to indicate the styling bits needed by that lexer with a
default value of 5. This has been set for HTML, XML, etc (7 bits) and
Ruby (6 bits).

   Change committed to CVS and available from
http://scintilla.sourceforge.net/scite.zip Source
http://scintilla.sourceforge.net/wscite.zip Windows executable

   Neil

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to