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