Mercurial > vim
annotate runtime/syntax/dosini.vim @ 28835:58d2315b096e v8.2.4941
patch 8.2.4941: '[ and '] marks may be wrong after undo
Commit: https://github.com/vim/vim/commit/82444cefa3fef87624a078ea86a72af7ef4ef42e
Author: LemonBoy <thatlemon@gmail.com>
Date: Thu May 12 15:39:31 2022 +0100
patch 8.2.4941: '[ and '] marks may be wrong after undo
Problem: '[ and '] marks may be wrong after undo.
Solution: Adjust the '[ and '] marks if needed. (closes https://github.com/vim/vim/issues/10407, closes https://github.com/vim/vim/issues/1281)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 12 May 2022 16:45:03 +0200 |
parents | 40ef13331e02 |
children | 5852c4c1c4bf |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
3082 | 2 " Language: Configuration File (ini file) for MSDOS/MS Windows |
14864 | 3 " Version: 2.2 |
3082 | 4 " Original Author: Sean M. McKee <mckee@misslink.net> |
5 " Previous Maintainer: Nima Talebi <nima@it.net.au> | |
14864 | 6 " Current Maintainer: Hong Xu <hong@topbug.net> |
3224 | 7 " Homepage: http://www.vim.org/scripts/script.php?script_id=3747 |
14864 | 8 " Repository: https://github.com/xuhdev/syntax-dosini.vim |
9 " Last Change: 2018 Sep 11 | |
1125 | 10 |
7 | 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 | 14 finish |
15 endif | |
16 | |
17 " shut case off | |
18 syn case ignore | |
19 | |
14864 | 20 syn match dosiniLabel "^.\{-}\ze\s*=" nextgroup=dosiniNumber,dosiniValue |
21 syn match dosiniValue "=\zs.*" | |
22 syn match dosiniNumber "=\zs\s*\d\+\s*$" | |
23 syn match dosiniNumber "=\zs\s*\d*\.\d\+\s*$" | |
24 syn match dosiniNumber "=\zs\s*\d\+e[+-]\=\d\+\s*$" | |
3082 | 25 syn region dosiniHeader start="^\s*\[" end="\]" |
26 syn match dosiniComment "^[#;].*$" | |
7 | 27 |
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 | 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 | 35 hi def link dosiniValue String |
7 | 36 |
37 | |
38 let b:current_syntax = "dosini" | |
39 | |
3082 | 40 " vim: sts=2 sw=2 et |