aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax/paludis-package-mask-conf.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/syntax/paludis-package-mask-conf.vim')
-rw-r--r--vim/syntax/paludis-package-mask-conf.vim30
1 files changed, 30 insertions, 0 deletions
diff --git a/vim/syntax/paludis-package-mask-conf.vim b/vim/syntax/paludis-package-mask-conf.vim
new file mode 100644
index 000000000..7f86a880f
--- /dev/null
+++ b/vim/syntax/paludis-package-mask-conf.vim
@@ -0,0 +1,30 @@
+" Vim syntax file
+" Language: Paludis package_{un,}mask.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 package_{un,}mask.conf files.
+"
+
+if &compatible || v:version < 700
+ finish
+endif
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syn region PaludisPackageMaskConfComment start=/^\s*#/ end=/$/
+
+syn match PaludisPackageMaskConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
+syn match PaludisPackageMaskConfSet /^[^ \t#\/]\+\S\@!/
+
+hi def link PaludisPackageMaskConfComment Comment
+hi def link PaludisPackageMaskConfPDS Identifier
+hi def link PaludisPackageMaskConfSet Special
+
+let b:current_syntax = "paludis-package-mask-conf"
+
+
+