lilypond-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Emacs-mode


From: Chris Jackson
Subject: Re: [PATCH] Emacs-mode
Date: Tue, 16 Apr 2002 21:25:20 +0100
User-agent: Mutt/1.3.28i

On Tue, Apr 16, 2002 at 10:01:12PM +0200, Rune Zedeler wrote:
> Chris Jackson wrote:
> 
> >Because they're recognised by the syntax table, and don't need a 
> >multi-line regexp to match them. As they should in lilypond...
> 
> How comes that c++ comments are easier to recognise than 
> lilypond-comments...???

Hmm - that was badly phrased - I should have said 

> > Because they're recognised by the syntax table, as they should be in
> > lilypond, and don't need a multi-line regexp to match them. 

because of course % and %{ %} are no harder than //  /* */

Heikki, I don't think there's any need for those complicated regexps for
matching strings and comments. If you remove "font-lock-keywords-only",
the fontification works perfectly well using just the syntax table, and
it recognises strings within strings, comments within comments...

(I've just noticed in the elisp manual about updating syntax table
properties using font-lock mode regexp matching... I wonder if that might
help with some of the uglier aspects of our mode. Must look into this
sometime...)

-- 
chris



reply via email to

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