help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax parsing of non-contiguous regions


From: Lennart Borgman
Subject: Re: syntax parsing of non-contiguous regions
Date: Mon, 21 Sep 2009 23:55:44 +0200

On Mon, Sep 21, 2009 at 9:28 PM, Alexander Katovsky
<alexander.katovsky@googlemail.com> wrote:
> Hi,
>
> Thanks for your reply.  The reason that I want to do this is to make a major
> mode that supports embedded code (i.e. two major  modes).  I have a strategy
> for doing this that would be well suited to my specific problem and is
> different from the multi-mode implementations I have seen.  The new mode
> will be derived from the primary mode.  The fontification in the primary
> mode will provide a hook that the derived mode can use to fontify the
> embedded code.

This looks rather similar to what MuMaMo does, but it does not use
comments for this. MuMaMo divides the buffer into major mode chunks.
This chunks are fontified by different major modes.

I am not sure I understand why you do not want to use MuMaMo here. Can
you please explain what you are missing?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]