From: Patrick McCarty Date: Mon, 26 Jul 2010 05:14:25 +0000 (-0700) Subject: Vim syntax: highlight embedded Scheme blocks. X-Git-Tag: release/2.13.29-1~41 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3b363e5d98ba0a53b5221f183b9cde51bf11cfa6;p=lilypond.git 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. --- 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.