Mercurial > vim
annotate runtime/syntax/exports.vim @ 11629:1a6daa73590a v8.0.0697
patch 8.0.0697: recorded key sequences may become invalid
commit https://github.com/vim/vim/commit/8858498516108432453526f07783f14c9196e112
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 7 13:32:14 2017 +0200
patch 8.0.0697: recorded key sequences may become invalid
Problem: Recorded key sequences may become invalid.
Solution: Add back KE_SNIFF removed in 7.4.1433. Use fixed numbers for the
key_extra enum.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 07 Jul 2017 13:45:03 +0200 |
parents | 46763b01cd9a |
children | 8edf0aeb71b9 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: exports | |
6479 | 3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz> |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
4 " Last Change: Aug 31, 2016 |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
5 " Version: 7 |
7 | 6 " Notes: This file includes both SysV and BSD 'isms |
6479 | 7 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_EXPORTS |
7 | 8 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
9 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
10 if exists("b:current_syntax") |
7 | 11 finish |
12 endif | |
13 | |
14 " Options: -word | |
15 syn keyword exportsKeyOptions contained alldirs nohide ro wsync | |
16 syn keyword exportsKeyOptions contained kerb o rw | |
17 syn match exportsOptError contained "[a-z]\+" | |
18 | |
19 " Settings: word= | |
20 syn keyword exportsKeySettings contained access anon root rw | |
21 syn match exportsSetError contained "[a-z]\+" | |
22 | |
23 " OptSet: -word= | |
24 syn keyword exportsKeyOptSet contained mapall maproot mask network | |
25 syn match exportsOptSetError contained "[a-z]\+" | |
26 | |
27 " options and settings | |
28 syn match exportsSettings "[a-z]\+=" contains=exportsKeySettings,exportsSetError | |
29 syn match exportsOptions "-[a-z]\+" contains=exportsKeyOptions,exportsOptError | |
30 syn match exportsOptSet "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError | |
31 | |
32 " Separators | |
33 syn match exportsSeparator "[,:]" | |
34 | |
35 " comments | |
36 syn match exportsComment "^\s*#.*$" contains=@Spell | |
37 | |
38 " Define the default highlighting. | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 if !exists("skip_exports_syntax_inits") |
7 | 40 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
41 hi def link exportsKeyOptSet exportsKeySettings |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
42 hi def link exportsOptSet exportsSettings |
7 | 43 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
44 hi def link exportsComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
45 hi def link exportsKeyOptions Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
46 hi def link exportsKeySettings Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
47 hi def link exportsOptions Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
48 hi def link exportsSeparator Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
49 hi def link exportsSettings Constant |
7 | 50 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
51 hi def link exportsOptError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
52 hi def link exportsOptSetError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
53 hi def link exportsSetError Error |
7 | 54 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
55 endif |
7 | 56 |
57 let b:current_syntax = "exports" | |
58 " vim: ts=10 |