gnu.emacs.help
[Top] [All Lists]

Re: Highlight parent if--else

Subject: Re: Highlight parent if--else
From: Nikolaj Schumacher <n_schumacher@xxxxxx>
Date: Thu, 31 Jul 2008 10:59:09 +0200
Newsgroups: gnu.emacs.help

Xah <xahlee@xxxxxxxxx> wrote:

> On Jul 30, 6:30 pm, "Will Chang" <changwei...@xxxxxxxxx> wrote:
>> Can we highlight IF, ELSE END IF just like highlight-parentheses?
>
> However, it is possible to write one that does that by using elisp's
> syntax table.

I don't think so.  Syntax tables can only match single characters.

One would have to write versions of `up-list' and maybe `forward-sexp'.
The rest can be done with existing code.


regards,
Nikolaj Schumacher



<Prev in Thread] Current Thread [Next in Thread>