Mercurial > vim
comparison runtime/syntax/dosini.vim @ 3224:8b8ef1fed009
Update runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Dec 2011 21:17:39 +0100 |
parents | 3502a7f991fc |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
3223:576648218cb5 | 3224:8b8ef1fed009 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Configuration File (ini file) for MSDOS/MS Windows | 2 " Language: Configuration File (ini file) for MSDOS/MS Windows |
3 " Version: 2.0 | 3 " Version: 2.1 |
4 " Original Author: Sean M. McKee <mckee@misslink.net> | 4 " Original Author: Sean M. McKee <mckee@misslink.net> |
5 " Previous Maintainer: Nima Talebi <nima@it.net.au> | 5 " Previous Maintainer: Nima Talebi <nima@it.net.au> |
6 " Current Maintainer: Hong Xu <xuhdev@gmail.com> | 6 " Current Maintainer: Hong Xu <xuhdev@gmail.com> |
7 " Last Change: 2011 Jul 21 | 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 | |
8 | 10 |
9 | 11 |
10 " For version 5.x: Clear all syntax items | 12 " For version 5.x: Clear all syntax items |
11 " For version 6.x: Quit when a syntax file was already loaded | 13 " For version 6.x: Quit when a syntax file was already loaded |
12 if version < 600 | 14 if version < 600 |
16 endif | 18 endif |
17 | 19 |
18 " shut case off | 20 " shut case off |
19 syn case ignore | 21 syn case ignore |
20 | 22 |
21 syn match dosiniBool "\<\(yes\|no\|y\|n\|true\|false\)\>" | |
22 syn match dosiniNumber "\<\d\+\>" | 23 syn match dosiniNumber "\<\d\+\>" |
23 syn match dosiniNumber "\<\d*\.\d\+\>" | 24 syn match dosiniNumber "\<\d*\.\d\+\>" |
24 syn match dosiniNumber "\<\d\+e[+-]\=\d\+\>" | 25 syn match dosiniNumber "\<\d\+e[+-]\=\d\+\>" |
25 syn match dosiniLabel "^.\{-}=" | 26 syn match dosiniLabel "^.\{-}=" |
26 syn region dosiniHeader start="^\s*\[" end="\]" | 27 syn region dosiniHeader start="^\s*\[" end="\]" |
35 command -nargs=+ HiLink hi link <args> | 36 command -nargs=+ HiLink hi link <args> |
36 else | 37 else |
37 command -nargs=+ HiLink hi def link <args> | 38 command -nargs=+ HiLink hi def link <args> |
38 endif | 39 endif |
39 | 40 |
40 HiLink dosiniBool Boolean | |
41 HiLink dosiniNumber Number | 41 HiLink dosiniNumber Number |
42 HiLink dosiniHeader Special | 42 HiLink dosiniHeader Special |
43 HiLink dosiniComment Comment | 43 HiLink dosiniComment Comment |
44 HiLink dosiniLabel Type | 44 HiLink dosiniLabel Type |
45 | 45 |