Mercurial > vim
comparison runtime/syntax/dosini.vim @ 14864:40ef13331e02
Update runtime files.
commit https://github.com/vim/vim/commit/95bafa296ae97bf420d5c74dd6db517b404c5df7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 2 13:26:25 2018 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 02 Oct 2018 13:30:07 +0200 |
parents | 46763b01cd9a |
children | 5852c4c1c4bf |
comparison
equal
deleted
inserted
replaced
14863:ddb5bfb4114d | 14864:40ef13331e02 |
---|---|
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.1 | 3 " Version: 2.2 |
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 <hong@topbug.net> |
7 " Homepage: http://www.vim.org/scripts/script.php?script_id=3747 | 7 " Homepage: http://www.vim.org/scripts/script.php?script_id=3747 |
8 " https://bitbucket.org/xuhdev/syntax-dosini.vim | 8 " Repository: https://github.com/xuhdev/syntax-dosini.vim |
9 " Last Change: 2011 Nov 8 | 9 " Last Change: 2018 Sep 11 |
10 | 10 |
11 | 11 |
12 " quit when a syntax file was already loaded | 12 " quit when a syntax file was already loaded |
13 if exists("b:current_syntax") | 13 if exists("b:current_syntax") |
14 finish | 14 finish |
15 endif | 15 endif |
16 | 16 |
17 " shut case off | 17 " shut case off |
18 syn case ignore | 18 syn case ignore |
19 | 19 |
20 syn match dosiniNumber "\<\d\+\>" | 20 syn match dosiniLabel "^.\{-}\ze\s*=" nextgroup=dosiniNumber,dosiniValue |
21 syn match dosiniNumber "\<\d*\.\d\+\>" | 21 syn match dosiniValue "=\zs.*" |
22 syn match dosiniNumber "\<\d\+e[+-]\=\d\+\>" | 22 syn match dosiniNumber "=\zs\s*\d\+\s*$" |
23 syn match dosiniLabel "^.\{-}=" | 23 syn match dosiniNumber "=\zs\s*\d*\.\d\+\s*$" |
24 syn match dosiniNumber "=\zs\s*\d\+e[+-]\=\d\+\s*$" | |
24 syn region dosiniHeader start="^\s*\[" end="\]" | 25 syn region dosiniHeader start="^\s*\[" end="\]" |
25 syn match dosiniComment "^[#;].*$" | 26 syn match dosiniComment "^[#;].*$" |
26 | 27 |
27 " Define the default highlighting. | 28 " Define the default highlighting. |
28 " Only when an item doesn't have highlighting yet | 29 " Only when an item doesn't have highlighting yet |
29 | 30 |
30 hi def link dosiniNumber Number | 31 hi def link dosiniNumber Number |
31 hi def link dosiniHeader Special | 32 hi def link dosiniHeader Special |
32 hi def link dosiniComment Comment | 33 hi def link dosiniComment Comment |
33 hi def link dosiniLabel Type | 34 hi def link dosiniLabel Type |
35 hi def link dosiniValue String | |
34 | 36 |
35 | 37 |
36 let b:current_syntax = "dosini" | 38 let b:current_syntax = "dosini" |
37 | 39 |
38 " vim: sts=2 sw=2 et | 40 " vim: sts=2 sw=2 et |