]> git.donarmstrong.com Git - lilypond.git/commitdiff
Vim syntax: highlight embedded Scheme blocks.
authorPatrick McCarty <pnorcks@gmail.com>
Mon, 26 Jul 2010 05:14:25 +0000 (22:14 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Mon, 26 Jul 2010 05:14:25 +0000 (22:14 -0700)
It is still a little rudimentary, but I've been using this highlighting
for the past six months without a problem.

vim/lilypond-syntax.vim

index c749fd9aa09f8a3afdd17bce141c84362c867761..57646a10d480ce071db3cfaeb2aae986a73b3b3c 100644 (file)
@@ -52,6 +52,11 @@ syn match lilySpecial        "\\[<!>\\]"
 " c--\mf c^^\mf c__\mf
 syn match lilyArticulation     "[-_^][-_^+|>.]"
 
+" Include Scheme syntax highlighting, where appropriate
+syn include @embeddedScheme syntax/scheme.vim
+unlet b:current_syntax
+syn region lilyScheme matchgroup=Delimiter start="#(" matchgroup=Delimiter end=")" contains=@embeddedScheme
+
 " Rest of syntax highlighting rules start here
 "
 " " Define the default highlighting.