From 3b363e5d98ba0a53b5221f183b9cde51bf11cfa6 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Sun, 25 Jul 2010 22:14:25 -0700 Subject: [PATCH] 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. --- vim/lilypond-syntax.vim | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.39.2