blob: 73744183ac5ad59d7add8949e4cf3c14ef054495 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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
6
7" For version 5.x: Clear all syntax items
8" For version 6.x: Quit when a syntax file was already loaded
9if version < 600
10 syntax clear
11elseif exists("b:current_syntax")
12 finish
13endif
14
15" shut case off
16syn case ignore
17
18syn match dosiniLabel "^.\{-}="
19syn region dosiniHeader start="\[" end="\]"
20syn match dosiniComment "^;.*$"
21
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
25if 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
32
33 HiLink dosiniHeader Special
34 HiLink dosiniComment Comment
35 HiLink dosiniLabel Type
36
37 delcommand HiLink
38endif
39
40let b:current_syntax = "dosini"
41
42" vim:ts=8