Mercurial > vim
annotate runtime/syntax/def.vim @ 19550:b3ef3538b389 v8.2.0332
patch 8.2.0332: some code in ex_getln.c not covered by tests
Commit: https://github.com/vim/vim/commit/d30ae2fc4acb3861fc7dc9618c1f90eee997d412
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 29 14:23:58 2020 +0100
patch 8.2.0332: some code in ex_getln.c not covered by tests
Problem: Some code in ex_getln.c not covered by tests.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5710)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 29 Feb 2020 14:30:03 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Microsoft Module-Definition (.def) File | |
1621 | 3 " Orig Author: Rob Brady <robb@datatone.com> |
4 " Maintainer: Wu Yongwei <wuyongwei@gmail.com> | |
2034 | 5 " Last Change: $Date: 2007/10/02 13:51:24 $ |
6 " $Revision: 1.2 $ | |
7 | 7 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
8 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
9 if exists("b:current_syntax") |
7 | 10 finish |
11 endif | |
12 | |
13 syn case ignore | |
14 | |
15 syn match defComment ";.*" | |
16 | |
17 syn keyword defKeyword LIBRARY STUB EXETYPE DESCRIPTION CODE WINDOWS DOS | |
18 syn keyword defKeyword RESIDENTNAME PRIVATE EXPORTS IMPORTS SEGMENTS | |
19 syn keyword defKeyword HEAPSIZE DATA | |
20 syn keyword defStorage LOADONCALL MOVEABLE DISCARDABLE SINGLE | |
21 syn keyword defStorage FIXED PRELOAD | |
22 | |
1621 | 23 syn match defOrdinal "\s\+@\d\+" |
7 | 24 |
25 syn region defString start=+'+ end=+'+ | |
26 | |
27 syn match defNumber "\d+" | |
28 syn match defNumber "0x\x\+" | |
29 | |
30 | |
31 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
32 " Only when an item doesn't have highlighting yet |
7 | 33 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
34 hi def link defComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
35 hi def link defKeyword Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
36 hi def link defStorage StorageClass |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
37 hi def link defString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
38 hi def link defNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 hi def link defOrdinal Operator |
7 | 40 |
41 | |
42 let b:current_syntax = "def" | |
43 | |
44 " vim: ts=8 |