[Top][All Lists]

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

Humble patch submission

From: Christ van Willegen
Subject: Humble patch submission
Date: Thu, 27 Jun 2019 09:37:02 +0200


I've been using Lilypond for a longt ime now, and have recently run
into (also) editting them with Vim. I've done that in the past, but am
now starting to use Vim for editting Lilypond files more often, so I
wanted to enable syntax coloring and keyword completion.

I got that working, but I found a small problem in the vim syntax file
that is included. It turns out that if I write g~g in a .ly file, the
second g is not highlighted as a note name, because Vim sees this as
one (key) word. I was able to fix that using the patch below. Please
consider including it in the Lilypond distribution.

I also fixed a spelling error while I was at it :-)

I contacted the original author, but the email address that was listed bounced.


Christ van Willegen
$ diff lilypond.vim /usr/share/lilypond/2.18.2/vim/syntax/lilypond.vim
< " Match also parethesis of angle type
> " Match also parentheses of angle type
> " ~ is not a keyword character
> setlocal isk-=126

reply via email to

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