Neil:
Neil Hodgson wrote: > > > Since there is no way to bound the number of keyword lists you > should make this dynamic by counting the entries in the lexer's > wordListDescriptions field but retaining the current limit for lexers > that do not set any word list descriptions. > > Neil > _______________________________________________ > Scintilla-interest mailing list > [email protected] > http://mailman.lyra.org/mailman/listinfo/scintilla-interest > > Simply increasing the number of entries in wordListDescriptions does not produce compiling errors but does produce a runtime error which crashes SciTE. I attach my current implementation of LexTeX.cxx. It is tested for about 20days without finding any problem. But in order for it to work line 675 of Scintilla.h must be changed to #define KEYWORDSET_MAX 16 instead of 8. Otherwise SciTE crashes at runtime. Notice that I have already increased the number of entries in texWordListDesc[]. To test the two folding modes (Cascaded or not), one must set fold.tex.cascaded=1 or 0. Moreover, put the following lines in the properties file: ## --------------------------------------- ## testing user defined folding headers ## keywords9--keywords17 corresponds to user defined headers of depth 1--9 keywords9.$(file.patterns.latex)=mypart mychapter keywords10.$(file.patterns.latex)=mysection bibliography keywords11.$(file.patterns.latex)=mysubsection keywords12.$(file.patterns.latex)=mysubsubsection keywords13.$(file.patterns.latex)=mysubsubsubsection keywords14.$(file.patterns.latex)=myparagraph keywords15.$(file.patterns.latex)=item bibitem keywords16.$(file.patterns.latex)= keywords17.$(file.patterns.latex)=CJKfamily ## -------------------------------------------------------- http://www.nabble.com/file/p11602066/LexTeX.cxx LexTeX.cxx -- View this message in context: http://www.nabble.com/TeX-%28was%3A-Re%3A-Re%3A-Re%3A-styler.GetPropertyInt-and-keywordlists%29-tf4003115.html#a11602066 Sent from the Scintilla - Dev mailing list archive at Nabble.com. _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
