aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax/paludis-licenses-conf.vim
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-03 19:34:49 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-03 19:34:49 +0000
commit51168ffc2dc12f15bc7d35d1b1272f47753001e6 (patch)
treed161d97768080e48585402cdfd67d5f58602b6b2 /vim/syntax/paludis-licenses-conf.vim
parentfa84d868b4ddf6aa8ca536a83c587e2c2656473e (diff)
downloadpaludis-51168ffc2dc12f15bc7d35d1b1272f47753001e6.tar.gz
paludis-51168ffc2dc12f15bc7d35d1b1272f47753001e6.tar.xz
Vim syntax scripts
Diffstat (limited to 'vim/syntax/paludis-licenses-conf.vim')
-rw-r--r--vim/syntax/paludis-licenses-conf.vim37
1 files changed, 37 insertions, 0 deletions
diff --git a/vim/syntax/paludis-licenses-conf.vim b/vim/syntax/paludis-licenses-conf.vim
new file mode 100644
index 000000000..496d24979
--- /dev/null
+++ b/vim/syntax/paludis-licenses-conf.vim
@@ -0,0 +1,37 @@
+" Vim syntax file
+" Language: Paludis licenses.conf files
+" Author: Ciaran McCreesh <ciaranm@gentoo.org>
+" Copyright: Copyright (c) 2007 Ciaran McCreesh
+" Licence: You may redistribute this under the same terms as Vim itself
+"
+" Syntax highlighting for Paludis licenses.conf files.
+"
+
+if &compatible || v:version < 700
+ finish
+endif
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syn region PaludisLicensesConfComment start=/^\s*#/ end=/$/
+
+syn match PaludisLicensesConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
+ \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation
+syn match PaludisLicensesConfSet /^[^ \t#\/]\+\S\@!/
+ \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation skipwhite
+syn match PaludisLicensesConfLicense contained /-\?[a-zA-Z0-9\-_*]\+/
+ \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation skipwhite
+syn match PaludisLicensesConfContinuation contained /\\$/
+ \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation skipwhite skipnl
+
+hi def link PaludisLicensesConfComment Comment
+hi def link PaludisLicensesConfPDS Identifier
+hi def link PaludisLicensesConfSet Special
+hi def link PaludisLicensesConfLicense Keyword
+hi def link PaludisLicensesConfContinuation Preproc
+
+let b:current_syntax = "paludis-licenses-conf"
+
+