- Subject: Re: [Jed-users-l] Adding modern Perl words
- From: jed@xxxxxxxxxxx
- Date: Tue, 11 Feb 2014 18:08:58 -0500
gamo <gamo@xxxxxxxxxxxx> wrote:
> I want to add few new words available in modern Perl features,
> like "say" "state" "given" "when" etc. to syntax highlight.
>
> Could I do it manually?
You can create a mode-specific hook and add them there. For perl you
would do something like:
define perl_mode_hook ()
{
variable table = what_syntax_table ();
if (table != NULL)
{
variable keyword;
foreach keyword (["say", "state", "given", "when"])
add_keyword (table, keyword);
}
}
--John
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2014 date index]
[2014 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]