Hi, Geany uses the Scintilla editing component which provides the lexers that parse the source for colourising.
AFAICT the Perl lexer does nothing but simple word comparison for keywords (see LexPerl.cxx in the src/scintilla directory of Geany). So someone would have to modify the Perl lexer to use regular expressions instead. Also Geany tries to use scintilla without any modifications so it is preferable if this is added to the upstream scintilla first. Cheers Lex 2009/9/25 Michele Beltrame <[email protected]>: > Hello! > > I'm extending my filetypes.perl to support Moose and MooseX::Declare > keywords. > > Some of them, however, are not a single word but two. For example: > > is mutable > is dirty > > I would prefer to to add "is", "mutable" and "dirty" as primary keywords, as > they're meaningless alone. Is it possible to have something regex-base such > as: > > /is\s+mutable/ > > parsed to search for keywords? > > Thanks, > Michele. > > BTW: Geany is great! > > -- > Michele Beltrame > http://www.italpro.net/ - [email protected] > SkyPe: arthas77 - Twitter: _arthas > _______________________________________________ > Geany mailing list > [email protected] > http://lists.uvena.de/cgi-bin/mailman/listinfo/geany > _______________________________________________ Geany mailing list [email protected] http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
