[Patch] Gettext translation file lexer (*.po)

1 view
Skip to first unread message

Enrico Tröger

unread,
Sep 28, 2008, 11:14:13 AM9/28/08
to scintilla...@googlegroups.com
Hi,


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

scintilla_lexpo.patch

Neil Hodgson

unread,
Oct 8, 2008, 7:31:51 AM10/8/08
to scintilla...@googlegroups.com
Enrico Tröger:

> 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

Reply all
Reply to author
Forward
0 new messages