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>
|
2965
|
6 " Updated By: Hong Xu
|
|
7 " Last Change: 2011 Jul 16
|
1125
|
8
|
7
|
9
|
|
10 " For version 5.x: Clear all syntax items
|
|
11 " For version 6.x: Quit when a syntax file was already loaded
|
|
12 if version < 600
|
|
13 syntax clear
|
|
14 elseif exists("b:current_syntax")
|
|
15 finish
|
|
16 endif
|
|
17
|
|
18 " shut case off
|
|
19 syn case ignore
|
|
20
|
|
21 syn match dosiniLabel "^.\{-}="
|
1125
|
22 syn region dosiniHeader start="^\[" end="\]"
|
2965
|
23 syn match dosiniComment "^[#;].*$"
|
7
|
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
|
|
28 if 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
|
|
41 endif
|
|
42
|
|
43 let b:current_syntax = "dosini"
|
|
44
|
|
45 " vim:ts=8
|