> There are some open bugs about LaTeX lexer:
Therre is also a TeX lexer in LexTeX.cxx. Some of the bugs may be
referring to it.
> 1) Currently, the lexer is in LexOthers.cxx. I can keep the lexer inside
> this file but, do you think that is a better approach to open a new file
> LexLatex.cxx?
If it grows, then it should be split out.
> 2) What are the implications on introducing new states on lexers?
> To solve the "verbatim" bugs (3081692, 1187857, 1856356) I need a new state
> SCE_L_VERBATIM. I modified the Scintilla.iface and executed the HFacer.py. I
> added also some new states. I've success with that and now Geany works as
> expected (hope SciTE too, but testing is still needed for that). If the
> client does understand a state, it fallback to default?
In general display will be OK (its likely to just use a default
font and colour) but user scripts that depend on lexical state, such
as an indexer, could break. There's no really good solution to this:
versioning lexers so clients can ask for any previous behaviour would
add considerable complexity so the issue has just been ignored. It
helps to minimize changes: don't rename or renumber states unless
really necessary.
Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla...@googlegroups.com.
To unsubscribe from this group, send email to scintilla-inter...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
Committed with a minor change to cast the result of strlen to an
unsigned int as otherwise it casuses a wanrning for 64-bit compiles.
Neil
Neil
> For curiosity, how do you get the warnings? with what builder / platform
> have you tested?
The current Windows SDK (7.1) compiler:
Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01 for x64
> I'm building in Linux 64bit (gcc 4.4.6) and I didn't received the warnings
> of the cast.
There have been similar errors with gcc on OS X inside Xcode but
that was probably due to turning an option on.
Neil
Neil