Mercurial > vim
annotate runtime/syntax/def.vim @ 29471:9ada26920941 v9.0.0077
patch 9.0.0077: wrong restored cursor position when switching window in autocmd
Commit: https://github.com/vim/vim/commit/b03950fafa07e8b8d975eeb345ad08b8b62e67ce
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 26 13:47:13 2022 +0100
patch 9.0.0077: wrong restored cursor position when switching window in autocmd
Problem: When switching window in autocmd the restored cursor position may
be wrong.
Solution: Do not restore the cursor if it was not set. (closes #10775)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 Jul 2022 15:00:05 +0200 |
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 |