[Top][All Lists]
[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 20:39:09 +0100 |
User-agent: |
Mutt/1.3.28i |
On Tue, Apr 16, 2002 at 08:36:20PM +0200, Rune Zedeler wrote:
> Heikki Johannes Junes wrote:
>
> >>When the mode is invoked (when a file is read or with M-x LilyPond-mode)
> >>then all multi-line schemes and multi-line comments are correctly
> >>parsed. But if you edit any of those - or create a new one - then the
> >>colouring gets wrong.
>
> >Yes. This is problem of Emacs. In manual:
>
> Hmmm, then why does C-mode multi line comments work?
Because they're recognised by the syntax table, and don't need a
multi-line regexp to match them. As they should in lilypond...
<goes to look at lilypond-font-lock.el>
Shit - the syntax table is wrong. Looks like I broke the multi-line
comments highlighting with a stupid typo (in the bracket-blinking patch).
Sorry about that. Fix attached.
--
chris
Index: lilypond-font-lock.el
===================================================================
RCS file: /home/lilypond/lilypond/lilypond-font-lock.el,v
retrieving revision 1.16
diff -p -u -r1.16 lilypond-font-lock.el
--- lilypond-font-lock.el 16 Apr 2002 11:58:09 -0000 1.16
+++ lilypond-font-lock.el 16 Apr 2002 19:34:13 -0000
@@ -178,8 +178,8 @@
(car x) (cdr x) LilyPond-mode-syntax-table)))
'(( ?\( . "." ) ( ?\) . "." )
( ?\[ . "(]" ) ( ?\] . ")[" ) ;; all the other paren characters are
now handled by
- ( ?\{ . ".2b" ) ;; lily-specific indenting/matching
code in lilypond-indent.el
- ( ?\} . ".4b" )
+ ( ?\{ . ". 2b" ) ;; lily-specific indenting/matching
code in lilypond-indent.el
+ ( ?\} . ". 4b" )
( ?\< . "." )( ?\> . ".")
( ?\$ . "." ) ( ?\% . "." ) ( ?\& . "." )
( ?\* . "." ) ( ?\+ . "." )
- [PATCH] Emacs-mode, Heikki Johannes Junes, 2002/04/16
- Re: [PATCH] Emacs-mode, Rune Zedeler, 2002/04/16
- Re: [PATCH] Emacs-mode, Heikki Johannes Junes, 2002/04/16
- Re: [PATCH] Emacs-mode,
Chris Jackson <=
- Re: [PATCH] Emacs-mode, Rune Zedeler, 2002/04/16
- Re: [PATCH] Emacs-mode, Chris Jackson, 2002/04/16
- Re: [PATCH] Emacs-mode, Heikki Johannes Junes, 2002/04/16
- Re: [PATCH] Emacs-mode, Rune Zedeler, 2002/04/19
- Re: [PATCH] Emacs-mode, Heikki Johannes Junes, 2002/04/21