Mercurial > vim
annotate runtime/syntax/dosini.vim @ 11398:30af33f4d353 v8.0.0584
patch 8.0.0584: memory leak when executing quickfix tests
commit https://github.com/vim/vim/commit/d788f6fe89c77262c474de323f5dab6d1c814e27
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 23 17:19:43 2017 +0200
patch 8.0.0584: memory leak when executing quickfix tests
Problem: Memory leak when executing quickfix tests.
Solution: Free the list reference. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 23 Apr 2017 17:30:03 +0200 |
parents | 46763b01cd9a |
children | 40ef13331e02 |
rev | line source |
---|---|
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 |
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 | |
3082 | 20 syn match dosiniNumber "\<\d\+\>" |
21 syn match dosiniNumber "\<\d*\.\d\+\>" | |
22 syn match dosiniNumber "\<\d\+e[+-]\=\d\+\>" | |
23 syn match dosiniLabel "^.\{-}=" | |
24 syn region dosiniHeader start="^\s*\[" end="\]" | |
25 syn match dosiniComment "^[#;].*$" | |
7 | 26 |
27 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
28 " Only when an item doesn't have highlighting yet |
7 | 29 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
30 hi def link dosiniNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
31 hi def link dosiniHeader Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
32 hi def link dosiniComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
33 hi def link dosiniLabel Type |
7 | 34 |
35 | |
36 let b:current_syntax = "dosini" | |
37 | |
3082 | 38 " vim: sts=2 sw=2 et |