[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New language feature breaks lilypond-words
From: |
Patrick McCarty |
Subject: |
Re: New language feature breaks lilypond-words |
Date: |
Mon, 13 Dec 2010 00:05:24 -0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On 2010-12-12, Jay Anderson wrote:
>
> Here's another lilypond vim annoyance. Take these lines as examples:
>
> \version "2.13.42"
> \once \override Staff.DynamicText #'self-alignment-X = #LEFT
>
> If you place the cursor over the "2" in the first line or over the "S"
> in Staff in the second line and type 'dw' (delete word) it will treat
> the dots as word characters and result in these lines:
>
> \version ""
> \once \override #'self-alignment-X = #LEFT
>
> I would expect it to stop at the dots. I haven't looked too much at
> the syntax file yet to see how this might be easily fixed.
Interesting!
The problem is that LilyPond's Vim syntax file includes the system's
Scheme syntax file, which overrides the `iskeyword' property to
something not-that-desirable for LilyPond files.
I *thought* that by including the Scheme syntax file, the overrides
and such would only apply to the @embeddedScheme group, but I guess
some of them leak through and apply to the entire LilyPond syntax
file. Seems odd, but there's probably something missing.
I'll think about this some more tomorrow.
Thanks,
Patrick