blob: 9cdc1d2de05f1786b8382d82c2922f6f987c9991 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: Configuration File (ini file) for MSDOS/MS Windows
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00003" 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>
Bram Moolenaar97293012011-07-18 19:40:27 +02006" Updated By: Hong Xu
7" Last Change: 2011 Jul 16
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00008
Bram Moolenaar071d4272004-06-13 20:20:40 +00009
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 "^.\{-}="
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000022syn region dosiniHeader start="^\[" end="\]"
Bram Moolenaar97293012011-07-18 19:40:27 +020023syn match dosiniComment "^[#;].*$"
Bram Moolenaar071d4272004-06-13 20:20:40 +000024
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