summaryrefslogtreecommitdiff
path: root/Build/source/texk/gregorio/gregorio-src/contrib/gabc.vim
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-12-09 22:20:21 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-12-09 22:20:21 +0000
commitfbfb4e16cc7761a5aefcae7cacf662fec7092c92 (patch)
tree0a1f90f31434d7c8fc766c97df33cb3e2456ef75 /Build/source/texk/gregorio/gregorio-src/contrib/gabc.vim
parentb4c906f1397a603ffc06957cb835ddd687c8fe2b (diff)
Import Gregorio-4.0.0.
git-svn-id: svn://tug.org/texlive/trunk@39063 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/gregorio/gregorio-src/contrib/gabc.vim')
-rw-r--r--Build/source/texk/gregorio/gregorio-src/contrib/gabc.vim32
1 files changed, 32 insertions, 0 deletions
diff --git a/Build/source/texk/gregorio/gregorio-src/contrib/gabc.vim b/Build/source/texk/gregorio/gregorio-src/contrib/gabc.vim
new file mode 100644
index 00000000000..654c06bab90
--- /dev/null
+++ b/Build/source/texk/gregorio/gregorio-src/contrib/gabc.vim
@@ -0,0 +1,32 @@
+" Vim syntax file
+" Language: Gabc gregorian chant notation
+" Maintainer: Elie Roux <elie.roux@telecom-bretagne.eu>
+" Last Change: 2008 Nov 29
+
+" Quit when a (custom) syntax file was already loaded
+if exists("b:current_syntax")
+ finish
+endif
+
+syn match gabcAttributeName /^[^:]*:/
+syn match gabcAttributeNameb ";"
+syn match gabcTextMarkup "</\?\w>" contained
+syn match gabcTranslation "\[[^\[\(]*\]\?" contained
+syn match gabcBasicNote "[a-mA-M]" contained
+syn match gabcAlteration "[\<\>~xXyYvVoOwWqQ\-Ss\._'1234]" contained
+syn match gabcSpace "[`,;!: /zZ]" contained
+syn region gabcNotes matchgroup=gabcNote start="(" end=")" contains=gabcBasicNote,gabcAlteration,gabcSpace contained
+syn region gabcText start="%%" end="%%zz" contains=gabcNotes,gabcTextMarkup,gabcTranslation
+
+
+" Define the default highlighting.
+hi def link gabcAttributeName Comment
+hi def link gabcAttributeNameb Comment
+hi def link gabcText Comment
+hi def link gabcTextMarkup PreProc
+hi def link gabcBasicNote Statement
+hi def link gabcNote Type
+hi def link gabcAlteration Type
+hi def link gabcSpace Special
+
+let b:current_syntax = "gabc"