Mercurial > vim
annotate runtime/syntax/def.vim @ 23402:65718283239b v8.2.2244
patch 8.2.2244: crash when making the window width negative
Commit: https://github.com/vim/vim/commit/89015a675990bd7d70e041c5d890edb803b5c6b7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 29 12:46:51 2020 +0100
patch 8.2.2244: crash when making the window width negative
Problem: Crash when making the window width of the not-current window
negative.
Solution: Make sure the window width is not negative. (closes #7568)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 29 Dec 2020 13:00:35 +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 |