annotate runtime/syntax/dosini.vim @ 17774:fa8b9059947b

Added tag v8.1.1883 for changeset e162a54e4c495b695ab2405415ae4b9a40e83698
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Aug 2019 18:00:04 +0200
parents 40ef13331e02
children 5852c4c1c4bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3082
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
2 " Language: Configuration File (ini file) for MSDOS/MS Windows
14864
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
3 " Version: 2.2
3082
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
4 " Original Author: Sean M. McKee <mckee@misslink.net>
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
5 " Previous Maintainer: Nima Talebi <nima@it.net.au>
14864
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
6 " Current Maintainer: Hong Xu <hong@topbug.net>
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3082
diff changeset
7 " Homepage: http://www.vim.org/scripts/script.php?script_id=3747
14864
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
8 " Repository: https://github.com/xuhdev/syntax-dosini.vim
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
9 " Last Change: 2018 Sep 11
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
10
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3224
diff changeset
12 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3224
diff changeset
13 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " shut case off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
14864
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
20 syn match dosiniLabel "^.\{-}\ze\s*=" nextgroup=dosiniNumber,dosiniValue
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
21 syn match dosiniValue "=\zs.*"
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
22 syn match dosiniNumber "=\zs\s*\d\+\s*$"
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
23 syn match dosiniNumber "=\zs\s*\d*\.\d\+\s*$"
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
24 syn match dosiniNumber "=\zs\s*\d\+e[+-]\=\d\+\s*$"
3082
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
25 syn region dosiniHeader start="^\s*\[" end="\]"
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
26 syn match dosiniComment "^[#;].*$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3224
diff changeset
29 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
31 hi def link dosiniNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
32 hi def link dosiniHeader Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
33 hi def link dosiniComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
34 hi def link dosiniLabel Type
14864
40ef13331e02 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
35 hi def link dosiniValue String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 let b:current_syntax = "dosini"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3082
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
40 " vim: sts=2 sw=2 et