7
|
1 " Vim syntax file
|
3082
|
2 " Language: Configuration File (ini file) for MSDOS/MS Windows
|
3224
|
3 " Version: 2.1
|
3082
|
4 " Original Author: Sean M. McKee <mckee@misslink.net>
|
|
5 " Previous Maintainer: Nima Talebi <nima@it.net.au>
|
|
6 " Current Maintainer: Hong Xu <xuhdev@gmail.com>
|
3224
|
7 " Homepage: http://www.vim.org/scripts/script.php?script_id=3747
|
|
8 " https://bitbucket.org/xuhdev/syntax-dosini.vim
|
|
9 " Last Change: 2011 Nov 8
|
1125
|
10
|
7
|
11
|
|
12 " For version 5.x: Clear all syntax items
|
|
13 " For version 6.x: Quit when a syntax file was already loaded
|
|
14 if version < 600
|
|
15 syntax clear
|
|
16 elseif exists("b:current_syntax")
|
|
17 finish
|
|
18 endif
|
|
19
|
|
20 " shut case off
|
|
21 syn case ignore
|
|
22
|
3082
|
23 syn match dosiniNumber "\<\d\+\>"
|
|
24 syn match dosiniNumber "\<\d*\.\d\+\>"
|
|
25 syn match dosiniNumber "\<\d\+e[+-]\=\d\+\>"
|
|
26 syn match dosiniLabel "^.\{-}="
|
|
27 syn region dosiniHeader start="^\s*\[" end="\]"
|
|
28 syn match dosiniComment "^[#;].*$"
|
7
|
29
|
|
30 " Define the default highlighting.
|
|
31 " For version 5.7 and earlier: only when not done already
|
|
32 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
33 if version >= 508 || !exists("did_dosini_syntax_inits")
|
|
34 if version < 508
|
|
35 let did_dosini_syntax_inits = 1
|
|
36 command -nargs=+ HiLink hi link <args>
|
|
37 else
|
|
38 command -nargs=+ HiLink hi def link <args>
|
|
39 endif
|
|
40
|
3082
|
41 HiLink dosiniNumber Number
|
|
42 HiLink dosiniHeader Special
|
|
43 HiLink dosiniComment Comment
|
|
44 HiLink dosiniLabel Type
|
7
|
45
|
|
46 delcommand HiLink
|
|
47 endif
|
|
48
|
|
49 let b:current_syntax = "dosini"
|
|
50
|
3082
|
51 " vim: sts=2 sw=2 et
|