SOURCES: poldek.vim (NEW) - based on dosini.vim

glen glen at pld-linux.org
Thu Apr 24 00:03:33 CEST 2008


Author: glen                         Date: Wed Apr 23 22:03:33 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- based on dosini.vim

---- Files affected:
SOURCES:
   poldek.vim (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/poldek.vim
diff -u /dev/null SOURCES/poldek.vim:1.1
--- /dev/null	Thu Apr 24 00:03:33 2008
+++ SOURCES/poldek.vim	Thu Apr 24 00:03:28 2008
@@ -0,0 +1,47 @@
+" Vim syntax file
+" Language:	Poldek configuration
+" Version Info: $Revision$
+" Author:       Elan Ruusamäe <glen at delfi.ee>
+" Maintainer:   Elan Ruusamäe <glen at delfi.ee>
+" Last Change:	$Date$ UTC
+"
+" 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
+
+" shut case off
+syn case ignore
+
+syn match  poldekLabel    "^.\{-}="
+syn region poldekHeader   start="^\[" end="\]"
+syn match  poldekComment  "^#.*$"
+syn match  poldekDirective '\(%include\|%includedir\)\s.*$'
+syn match  poldekMacro    '%{_\h\w*}' 
+
+" 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_inifile_syntax_inits")
+  if version < 508
+    let did_poldek_syntax_inits = 1
+    command -nargs=+ HiLink hi link <args>
+  else
+    command -nargs=+ HiLink hi def link <args>
+  endif
+
+  HiLink poldekHeader     Special
+  HiLink poldekComment    Comment
+  HiLink poldekLabel      Type
+  HiLink poldekDirective  Statement
+  HiLink poldekMacro      Macro
+
+  delcommand HiLink
+endif
+
+let b:current_syntax = "poldek"
+
+" vim:ts=2:sw=2
================================================================


More information about the pld-cvs-commit mailing list