xref: /vim-8.2.3635/runtime/syntax/dosini.vim (revision 00a927d6)
1" Vim syntax file
2" Language:	Configuration File (ini file) for MSDOS/MS Windows
3" Version Info: @(#)dosini.vim 1.6 97/12/15 08:54:12
4" Author:       Sean M. McKee <[email protected]>
5" Maintainer:   Nima Talebi <[email protected]>
6" Last Change:	Mon, 26 Jun 2006 22:07:28 +1000
7
8
9" For version 5.x: Clear all syntax items
10" For version 6.x: Quit when a syntax file was already loaded
11if version < 600
12  syntax clear
13elseif exists("b:current_syntax")
14  finish
15endif
16
17" shut case off
18syn case ignore
19
20syn match  dosiniLabel		"^.\{-}="
21syn region dosiniHeader		start="^\[" end="\]"
22syn 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
27if 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
40endif
41
42let b:current_syntax = "dosini"
43
44" vim:ts=8
45