1" Vim syntax file 2" Language: Configuration File (ini file) for MSDOS/MS Windows 3" Version Info: @(#)dosini.vim 1.6 97/12/15 08:54:12 4" Author: Sean M. McKee <[email protected]> 5" Maintainer: Nima Talebi <[email protected]> 6" Updated By: Hong Xu 7" Last Change: 2011 Jul 16 8 9 10" For version 5.x: Clear all syntax items 11" For version 6.x: Quit when a syntax file was already loaded 12if version < 600 13 syntax clear 14elseif exists("b:current_syntax") 15 finish 16endif 17 18" shut case off 19syn case ignore 20 21syn match dosiniLabel "^.\{-}=" 22syn region dosiniHeader start="^\[" end="\]" 23syn match dosiniComment "^[#;].*$" 24 25" Define the default highlighting. 26" For version 5.7 and earlier: only when not done already 27" For version 5.8 and later: only when an item doesn't have highlighting yet 28if version >= 508 || !exists("did_dosini_syntax_inits") 29 if version < 508 30 let did_dosini_syntax_inits = 1 31 command -nargs=+ HiLink hi link <args> 32 else 33 command -nargs=+ HiLink hi def link <args> 34 endif 35 36 HiLink dosiniHeader Special 37 HiLink dosiniComment Comment 38 HiLink dosiniLabel Type 39 40 delcommand HiLink 41endif 42 43let b:current_syntax = "dosini" 44 45" vim:ts=8 46