Neil Hodgson wrote:
...
  There is no direct way to determine that a lexer may perform
folding. This information is not known by the generic Scintilla code
either. If a lexer changes folding then the container will receive
SCN_MODIFIED notifications with the SC_MOD_CHANGEFOLD set. You could
grep for "SetLevel" in the lexer source code.

Well, yes, but... the LexerModule struct knows whether there is a "fold" entry or not, so perhaps selecting one of the fold-related API calls and documenting an error return to mean "NO folding here"?

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to