I wrote a lexer for gettext translation files (*.po).
It was pretty easy as the existing properties lexer(SCLEX_PROPERTIES)
was a good base. Maybe there are still bugs in the code but it mainly
works well.
Still two remarks:
a) in src/LexOthers.cpp, ColourisePropsDoc() and ColourisePoDoc() are
the same functions, they differ only in the calls of
ColourisePropsLine() resp. ColourisePoLine(). I wasn't sure if they
maybe could be merged into one function which takes an additional
argument to determine which colourise funtion should be used. I'll
leave this up to you :).
b) [unrelated] in src/KeyWords.cxx in the list of linked lexers
lmMySQL is missing, is this intended?
The patch would fix
https://sourceforge.net/tracker/index.php?func=detail&aid=1630109&group_id=2439&atid=352439
and
https://sourceforge.net/tracker/index.php?func=detail&aid=1461303&group_id=2439&atid=352439
Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.asc
> I wrote a lexer for gettext translation files (*.po).
Committed.
> b) [unrelated] in src/KeyWords.cxx in the list of linked lexers
> lmMySQL is missing, is this intended?
It was wrong. The lexer declaration line was indented and so wasn't
being picked up by the scripts. Fixed now.
Neil