summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorPatrick McCarty <pnorcks@gmail.com>2010-07-25 22:14:25 -0700
committerPatrick McCarty <pnorcks@gmail.com>2010-07-25 22:14:25 -0700
commit3b363e5d98ba0a53b5221f183b9cde51bf11cfa6 (patch)
tree88888fccf84716b85ba4517eaddf3f1164e29fcf /vim
parentec2ac47dd42c72c28c7b0e5064e5e191474e13d9 (diff)
Vim syntax: highlight embedded Scheme blocks.
It is still a little rudimentary, but I've been using this highlighting for the past six months without a problem.
Diffstat (limited to 'vim')
-rw-r--r--vim/lilypond-syntax.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/lilypond-syntax.vim b/vim/lilypond-syntax.vim
index c749fd9aa0..57646a10d4 100644
--- a/vim/lilypond-syntax.vim
+++ b/vim/lilypond-syntax.vim
@@ -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.