Currently, the following folding flags are defined: #define SC_FOLDLEVELBASE 0x400 #define SC_FOLDLEVELWHITEFLAG 0x1000 #define SC_FOLDLEVELHEADERFLAG 0x2000 #define SC_FOLDLEVELBOXHEADERFLAG 0x4000 #define SC_FOLDLEVELBOXFOOTERFLAG 0x8000 #define SC_FOLDLEVELCONTRACTED 0x10000 #define SC_FOLDLEVELUNINDENT 0x20000 #define SC_FOLDLEVELNUMBERMASK 0x0FFF
This leaves 14 flag bits for the future. If I could have 1 flag bit for my own use, I could use my language lexer folding settings to make setting indents and the like very much easier. Otherwise I have to reproduce much of the folding code in the container. Could I propose that we define: #define SC_FOLDLEVELUSERMASK 0xf0000000 or even #define SC_FOLDLEVELUSERMASK 0xff000000 and state that these bits are reserved for any private information that the lexer discovers that it wants to make available to the container. _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
