lilypond-user
[Top][All Lists]
Advanced

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

nanorc


From: Martin Tarenskeen
Subject: nanorc
Date: Thu, 15 Jan 2009 08:18:48 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

I can't remember who it was, but in a previous thread someone posted a 
nanorc configuration file for nano with lilypond syntax highlighting in 
this list.

I got slightly better results when I changed the following lines in the 
nanorc file:

posted version:

color green "[a-h](as|es|is|isis|eses|s)?(['!,?]?)"
color green "[a-h](as|es|is|isis|eses|s)?(['!,?]?)+[0-9]+[\.]?"

My version is now:

color green "[a-hrs](as|es|is|isis|eses|s)?(['!,?]?) "
color green "[a-hrs](as|es|is|isis|eses|s)?(['!,?]?)+[0-9]+[\.]? "

[a-hrs] takes care of r rests and s spaces just like normal notenames.
The added space at the end of the expression just before the closing " 
prevents that too many words are colored green that are not notenames.

I will also attach my complete nanorc file which, in addition, also 
includes ABC music syntax support.
 
Maybe this helps,

Martin Tarenskeen
 


Attachment: nanorc
Description: Text document


reply via email to

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