[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs mode
From: |
Rune Zedeler |
Subject: |
Re: Emacs mode |
Date: |
Mon, 18 Mar 2002 14:40:21 +0100 (MET) |
User-agent: |
IMP/PHP IMAP webmail program 2.2.6 |
Citat Chris Jackson <address@hidden>:
> comments). A similar problem occurs with () meaning either Scheme or
> a
> phrasing-slur, depending on context, and the emacs syntax table
> doesn't understand context.
Well, I don't think it matters whether a paren is a slur or a scheme-paren, does
it?
The problem is that all parens except {} and <> needs to be matched individually
(i.e. ( { ) } is legal)
> I suppose a solution might be to write a lily-specific paren-blinking
> function.
Yes, that is probably what it takes :-(
-Rune
> (meanwhile this patch will take care of [ ] ...)
>
> --- lilypond-font-lock.el~ Fri Mar 15 13:17:12 2002
> +++ lilypond-font-lock.el Mon Mar 18 13:19:38 2002
> @@ -163,7 +163,7 @@
> (lambda (x) (modify-syntax-entry
> (car x) (cdr x) LilyPond-mode-syntax-table)))
> '(( ?\( . "." ) ( ?\) . "." )
> - ( ?\[ . "." ) ( ?\] . "." )
> + ( ?\[ . "(]" ) ( ?\] . ")[" )
> ( ?\{ . "(}2b" )
> ( ?\} . "){4b" )
> ( ?\< . "." )( ?\> . ".")
Tnx.
The colouring of "<" is still buggy, btw.
Try entering
<
>
The result is two black parens. If deleting and reinserting the '<' then the
parens get red.
-Rune