annotate runtime/syntax/exports.vim @ 28154:ae975c8d5438 v8.2.4601

patch 8.2.4601: Vim9: not enough test coverage for executing :def function Commit: https://github.com/vim/vim/commit/efd73ae5d2a533670f562b6df5be2ffeb091185d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 20 18:51:00 2022 +0000 patch 8.2.4601: Vim9: not enough test coverage for executing :def function Problem: Vim9: not enough test coverage for executing :def function. Solution: Add a few more tests.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Mar 2022 20:00:03 +0100
parents 8edf0aeb71b9
children 02bd0fe77c68
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: exports
19180
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
3 " Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
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
19180
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
5 " Version: 8
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Notes: This file includes both SysV and BSD 'isms
6479
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
7 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_EXPORTS
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Options: -word
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword exportsKeyOptions contained alldirs nohide ro wsync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword exportsKeyOptions contained kerb o rw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match exportsOptError contained "[a-z]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Settings: word=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword exportsKeySettings contained access anon root rw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match exportsSetError contained "[a-z]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " OptSet: -word=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword exportsKeyOptSet contained mapall maproot mask network
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match exportsOptSetError contained "[a-z]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " options and settings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match exportsSettings "[a-z]\+=" contains=exportsKeySettings,exportsSetError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match exportsOptions "-[a-z]\+" contains=exportsKeyOptions,exportsOptError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match exportsOptSet "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " Separators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match exportsSeparator "[,:]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match exportsComment "^\s*#.*$" contains=@Spell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
55 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 let b:current_syntax = "exports"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " vim: ts=10