X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=vim%2Flilypond-syntax.vim;h=c8322f697e4808e3ed673bc3e7af782ea624dd06;hb=2da5c55cf0a968982223682227a0cf3b019d03a8;hp=57646a10d480ce071db3cfaeb2aae986a73b3b3c;hpb=3b363e5d98ba0a53b5221f183b9cde51bf11cfa6;p=lilypond.git diff --git a/vim/lilypond-syntax.vim b/vim/lilypond-syntax.vim index 57646a10d4..c8322f697e 100644 --- a/vim/lilypond-syntax.vim +++ b/vim/lilypond-syntax.vim @@ -1,9 +1,7 @@ " LilyPond syntax file " Language: LilyPond " Maintainer: Heikki Junes -" Created: Oct 17, 2002 -" Last Change: Aug 30, 2009 -" Version: 6.1-1 +" Last Change: 2010 Jul 26 " " Installed As: vim/syntax/lilypond.vim " Uses Generated File: vim/syntax/lilypond-words.vim @@ -33,7 +31,7 @@ setlocal mps+=<:> " Case matters syn case match -syn cluster lilyMatchGroup contains=lilyMatcher,lilyString,lilyComment,lilyStatement,lilyNumber,lilyEquation,lilySlur,lilySpecial,lilyNote,lilyKeyword,lilyArticulation,lilyReservedWord +syn cluster lilyMatchGroup contains=lilyMatcher,lilyString,lilyComment,lilyStatement,lilyNumber,lilySlur,lilySpecial,lilyNote,lilyKeyword,lilyArticulation,lilyReservedWord,lilyScheme syn region lilyMatcher matchgroup=Delimiter start="{" skip="\\\\\|\\[<>]" end="}" contains=@lilyMatchGroup fold syn region lilyMatcher matchgroup=Delimiter start="\[" end="]" contains=@lilyMatchGroup fold @@ -44,7 +42,6 @@ syn region lilyComment start="%{" skip="%$" end="%}" syn region lilyComment start="%\([^{]\|$\)" end="$" syn match lilyNumber "[-_^.]\?\d\+[.]\?" -syn match lilyEquation "\(#['`]\)\?\(\a*[-]\)*\a*\s*=\s*\(#[#'`]\?\)\?\a*" syn match lilySlur "[(~)]" syn match lilySlur "\\[()]" syn match lilySpecial "\\[\\]" @@ -55,7 +52,7 @@ 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 +syn region lilyScheme matchgroup=Delimiter start="#['`]\?(" matchgroup=Delimiter end=")" contains=@embeddedScheme " Rest of syntax highlighting rules start here "