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" )              
            ( ?\< . "." )( ?\> . ".") 
            ( ?\$ . "." ) ( ?\% . "." ) ( ?\& . "." )
            ( ?\* . "." ) ( ?\+ . "." )

_______________________________________________
Lilypond-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to