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