summaryrefslogtreecommitdiffstats
path: root/syntax/lilypond.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-01-14 20:59:40 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2021-01-14 20:59:40 +0100
commit22040ce638ed610cfdbba03376ad9864a2a5d321 (patch)
tree43e3ef7cc1a17994bbf1460d0d000dd7e0723168 /syntax/lilypond.vim
parent7bde552a463999897320a1899a6ca4f8806041ea (diff)
downloadvim-polyglot-22040ce638ed610cfdbba03376ad9864a2a5d321.tar.gz
vim-polyglot-22040ce638ed610cfdbba03376ad9864a2a5d321.zip
Update
Diffstat (limited to 'syntax/lilypond.vim')
-rw-r--r--syntax/lilypond.vim91
1 files changed, 0 insertions, 91 deletions
diff --git a/syntax/lilypond.vim b/syntax/lilypond.vim
deleted file mode 100644
index c8ea6d46..00000000
--- a/syntax/lilypond.vim
+++ /dev/null
@@ -1,91 +0,0 @@
-if polyglot#init#is_disabled(expand('<sfile>:p'), 'lilypond', 'syntax/lilypond.vim')
- finish
-endif
-
-" LilyPond syntax file
-" Language: LilyPond
-" Maintainer: Heikki Junes <hjunes@cc.hut.fi>
-" Last Change: 2010 Jul 26
-"
-" Installed As: vim/syntax/lilypond.vim
-" Uses Generated File: vim/syntax/lilypond-words.vim
-"
-" For version 5.x: Clear all syntax items
-" For version 6.x: Quit when a syntax file was already loaded
-if version < 600
- syntax clear
-elseif exists("b:current_syntax")
- finish
-endif
-
-" Read the LilyPond syntax match groups:
-" lilyKeyword, lilyReservedWord, lilyNote
-if version < 600
- so <sfile>:p:h/lilypond-words.vim
-else
- runtime! syntax/lilypond-words.vim
- if exists("b:current_syntax")
- unlet b:current_syntax
- endif
-endif
-
-" Match also parethesis of angle type
-setlocal mps+=<:>
-
-" Case matters
-syn case match
-
-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
-syn region lilyMatcher matchgroup=Delimiter start="<" skip="\\\\\|\\[{<>}]" end=">" contains=@lilyMatchGroup fold
-
-syn region lilyString start=/"/ end=/"/ skip=/\\"/
-syn region lilyComment start="%{" skip="%$" end="%}"
-syn region lilyComment start="%\([^{]\|$\)" end="$"
-
-syn match lilyNumber "[-_^.]\?\d\+[.]\?"
-syn match lilySlur "[(~)]"
-syn match lilySlur "\\[()]"
-syn match lilySpecial "\\[<!>\\]"
-" avoid highlighting the extra character in situations like
-" 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.
-" " For version 5.7 and earlier: only when not done already
-" " For version 5.8 and later: only when an item doesn't have highlighting yet
-if version >= 508 || !exists("did_lily_syn_inits")
- if version < 508
- let did_lily_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink Delimiter Identifier
-
- HiLink lilyString String
- HiLink lilyComment Comment
-
- HiLink lilyNote Identifier
- HiLink lilyArticulation PreProc
- HiLink lilyKeyword Keyword
- HiLink lilyReservedWord Type
-
- HiLink lilyNumber Constant
- HiLink lilySpecial Special
- HiLink lilySlur ModeMsg
-
- delcommand HiLink
-endif
-
-let b:current_syntax = "lilypond"