annotate runtime/syntax/zsh.vim @ 34405:5337abbdf88e v9.1.0127

patch 9.1.0127: Naming a non-pointer variable "oap" is strange Commit: https://github.com/vim/vim/commit/5e3674b42da10b7e7c72d1f20f9a15379af1b60a Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Feb 22 19:51:34 2024 +0100 patch 9.1.0127: Naming a non-pointer variable "oap" is strange Problem: Naming a non-pointer variable "oap" is strange. Solution: Rename it to "oa". Also prevent using freed memory in case of memory allocation failure. (zeertzjq) closes: #14075 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 22 Feb 2024 20:00:07 +0100
parents d6dde6229b36
children
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
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
2 " Language: Zsh shell script
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
3 " Maintainer: Christian Brabandt <cb@256bit.org>
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
5 " Latest Revision: 2022-07-26
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
6 " License: Vim (see :h license)
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
7 " Repository: https://github.com/chrisbra/vim-zsh
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
9 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
13 let s:cpo_save = &cpo
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
14 set cpo&vim
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
15
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
16 function! s:ContainedGroup()
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
17 " needs 7.4.2008 for execute() function
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
18 let result='TOP'
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
19 " vim-pandoc syntax defines the @langname cluster for embedded syntax languages
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
20 " However, if no syntax is defined yet, `syn list @zsh` will return
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
21 " "No syntax items defined", so make sure the result is actually a valid syn cluster
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
22 for cluster in ['markdownHighlight_zsh', 'zsh']
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
23 try
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
24 " markdown syntax defines embedded clusters as @markdownhighlight_<lang>,
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
25 " pandoc just uses @<lang>, so check both for both clusters
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
26 let a=split(execute('syn list @'. cluster), "\n")
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
27 if len(a) == 2 && a[0] =~# '^---' && a[1] =~? cluster
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
28 return '@'. cluster
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
29 endif
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
30 catch /E392/
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
31 " ignore
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
32 endtry
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
33 endfor
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
34 return result
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
35 endfunction
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
36
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
37 let s:contained=s:ContainedGroup()
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
38
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
39 syn iskeyword @,48-57,_,192-255,#,-
8246
f16bfe02cef1 commit https://github.com/vim/vim/commit/f391327adbbffb11180cf6038a92af1ed144e907
Christian Brabandt <cb@256bit.org>
parents: 7924
diff changeset
40 if get(g:, 'zsh_fold_enable', 0)
f16bfe02cef1 commit https://github.com/vim/vim/commit/f391327adbbffb11180cf6038a92af1ed144e907
Christian Brabandt <cb@256bit.org>
parents: 7924
diff changeset
41 setlocal foldmethod=syntax
f16bfe02cef1 commit https://github.com/vim/vim/commit/f391327adbbffb11180cf6038a92af1ed144e907
Christian Brabandt <cb@256bit.org>
parents: 7924
diff changeset
42 endif
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
43
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
44 syn match zshQuoted '\\.'
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
45 syn match zshPOSIXQuoted '\\[xX][0-9a-fA-F]\{1,2}'
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
46 syn match zshPOSIXQuoted '\\[0-7]\{1,3}'
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
47 syn match zshPOSIXQuoted '\\u[0-9a-fA-F]\{1,4}'
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
48 syn match zshPOSIXQuoted '\\U[1-9a-fA-F]\{1,8}'
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
49
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
50 syn region zshString matchgroup=zshStringDelimiter start=+"+ end=+"+
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
51 \ contains=zshQuoted,@zshDerefs,@zshSubstQuoted fold
8246
f16bfe02cef1 commit https://github.com/vim/vim/commit/f391327adbbffb11180cf6038a92af1ed144e907
Christian Brabandt <cb@256bit.org>
parents: 7924
diff changeset
52 syn region zshString matchgroup=zshStringDelimiter start=+'+ end=+'+ fold
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
53 syn region zshPOSIXString matchgroup=zshStringDelimiter start=+\$'+
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
54 \ skip=+\\[\\']+ end=+'+ contains=zshPOSIXQuoted,zshQuoted
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
55 syn match zshJobSpec '%\(\d\+\|?\=\w\+\|[%+-]\)'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
56
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
57 syn match zshNumber '[+-]\=\<\d\+\>'
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
58 syn match zshNumber '[+-]\=\<0x\x\+\>'
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
59 syn match zshNumber '[+-]\=\<0\o\+\>'
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
60 syn match zshNumber '[+-]\=\d\+#[-+]\=\w\+\>'
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
61 syn match zshNumber '[+-]\=\d\+\.\d\+\>'
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
62
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
63 syn keyword zshPrecommand noglob nocorrect exec command builtin - time
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
64
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
65 syn keyword zshDelimiter do done end
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
66
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
67 syn keyword zshConditional if then elif else fi esac select
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
68
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
69 syn keyword zshCase case nextgroup=zshCaseWord skipwhite
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
70 syn match zshCaseWord /\S\+/ nextgroup=zshCaseIn skipwhite contained transparent
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
71 syn keyword zshCaseIn in nextgroup=zshCasePattern skipwhite skipnl contained
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
72 syn match zshCasePattern /\S[^)]*)/ contained
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
73
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
74 syn keyword zshRepeat while until repeat
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
75
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
76 syn keyword zshRepeat for foreach nextgroup=zshVariable skipwhite
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
77
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
78 syn keyword zshException always
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
79
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
80 syn keyword zshKeyword function nextgroup=zshKSHFunction skipwhite
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
81
8246
f16bfe02cef1 commit https://github.com/vim/vim/commit/f391327adbbffb11180cf6038a92af1ed144e907
Christian Brabandt <cb@256bit.org>
parents: 7924
diff changeset
82 syn match zshKSHFunction contained '\w\S\+'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
83 syn match zshFunction '^\s*\k\+\ze\s*()'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
84
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
85 syn match zshOperator '||\|&&\|;\|&!\='
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
87 " <<<, <, <>, and variants.
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
88 syn match zshRedir '\d\=\(<<<\|<&\s*[0-9p-]\=\|<>\?\)'
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
89 " >, >>, and variants.
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
90 syn match zshRedir '\d\=\(>&\s*[0-9p-]\=\|&>>\?\|>>\?&\?\)[|!]\='
33577
d6dde6229b36 runtime: Fix more typos (#13354)
Christian Brabandt <cb@256bit.org>
parents: 30202
diff changeset
91 " | and |&, but only if it's not preceded or
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
92 " followed by a | to avoid matching ||.
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
93 syn match zshRedir '|\@1<!|&\=|\@!'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
94
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
95 syn region zshHereDoc matchgroup=zshRedir
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
96 \ start='<\@<!<<\s*\z([^<]\S*\)'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
97 \ end='^\z1\>'
13912
a9fdf01085a8 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12968
diff changeset
98 \ contains=@zshSubst,@zshDerefs,zshQuoted,zshPOSIXString
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
99 syn region zshHereDoc matchgroup=zshRedir
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
100 \ start='<\@<!<<\s*\\\z(\S\+\)'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
101 \ end='^\z1\>'
13912
a9fdf01085a8 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12968
diff changeset
102 \ contains=@zshSubst,@zshDerefs,zshQuoted,zshPOSIXString
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
103 syn region zshHereDoc matchgroup=zshRedir
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
104 \ start='<\@<!<<-\s*\\\=\z(\S\+\)'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
105 \ end='^\s*\z1\>'
13912
a9fdf01085a8 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12968
diff changeset
106 \ contains=@zshSubst,@zshDerefs,zshQuoted,zshPOSIXString
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
107 syn region zshHereDoc matchgroup=zshRedir
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
108 \ start=+<\@<!<<\s*\(["']\)\z(\S\+\)\1+
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
109 \ end='^\z1\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
110 syn region zshHereDoc matchgroup=zshRedir
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
111 \ start=+<\@<!<<-\s*\(["']\)\z(\S\+\)\1+
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
112 \ end='^\s*\z1\>'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
113
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
114 syn match zshVariable '\<\h\w*' contained
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
115
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
116 syn match zshVariableDef '\<\h\w*\ze+\=='
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
117 " XXX: how safe is this?
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
118 syn region zshVariableDef oneline
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
119 \ start='\$\@<!\<\h\w*\[' end='\]\ze+\?=\?'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
120 \ contains=@zshSubst
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
121
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
122 syn cluster zshDerefs contains=zshShortDeref,zshLongDeref,zshDeref,zshDollarVar
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
124 syn match zshShortDeref '\$[!#$*@?_-]\w\@!'
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
125 syn match zshShortDeref '\$[=^~]*[#+]*\d\+\>'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
126
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
127 syn match zshLongDeref '\$\%(ARGC\|argv\|status\|pipestatus\|CPUTYPE\|EGID\|EUID\|ERRNO\|GID\|HOST\|LINENO\|LOGNAME\)'
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
128 syn match zshLongDeref '\$\%(MACHTYPE\|OLDPWD OPTARG\|OPTIND\|OSTYPE\|PPID\|PWD\|RANDOM\|SECONDS\|SHLVL\|signals\)'
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
129 syn match zshLongDeref '\$\%(TRY_BLOCK_ERROR\|TTY\|TTYIDLE\|UID\|USERNAME\|VENDOR\|ZSH_NAME\|ZSH_VERSION\|REPLY\|reply\|TERM\)'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
131 syn match zshDollarVar '\$\h\w*'
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
132 syn match zshDeref '\$[=^~]*[#+]*\h\w*\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
134 syn match zshCommands '\%(^\|\s\)[.:]\ze\s'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
135 syn keyword zshCommands alias autoload bg bindkey break bye cap cd
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
136 \ chdir clone comparguments compcall compctl
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
137 \ compdescribe compfiles compgroups compquote
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
138 \ comptags comptry compvalues continue dirs
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
139 \ disable disown echo echotc echoti emulate
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
140 \ enable eval exec exit export false fc fg
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
141 \ functions getcap getln getopts hash history
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
142 \ jobs kill let limit log logout popd print
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
143 \ printf prompt pushd pushln pwd r read
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
144 \ rehash return sched set setcap shift
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
145 \ source stat suspend test times trap true
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
146 \ ttyctl type ulimit umask unalias unfunction
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
147 \ unhash unlimit unset vared wait
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
148 \ whence where which zcompile zformat zftp zle
13912
a9fdf01085a8 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12968
diff changeset
149 \ zmodload zparseopts zprof zpty zrecompile
a9fdf01085a8 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12968
diff changeset
150 \ zregexparse zsocket zstyle ztcp
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
151
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
152 " Options, generated by from the zsh source with the make-options.zsh script.
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
153 syn case ignore
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
154 syn match zshOptStart
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
155 \ /\v^\s*%(%(un)?setopt|set\s+[-+]o)/
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
156 \ nextgroup=zshOption skipwhite
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
157 syn keyword zshOption nextgroup=zshOption,zshComment skipwhite contained
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
158 \ auto_cd no_auto_cd autocd noautocd auto_pushd no_auto_pushd autopushd noautopushd cdable_vars
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
159 \ no_cdable_vars cdablevars nocdablevars cd_silent no_cd_silent cdsilent nocdsilent chase_dots
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
160 \ no_chase_dots chasedots nochasedots chase_links no_chase_links chaselinks nochaselinks posix_cd
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
161 \ posixcd no_posix_cd noposixcd pushd_ignore_dups no_pushd_ignore_dups pushdignoredups
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
162 \ nopushdignoredups pushd_minus no_pushd_minus pushdminus nopushdminus pushd_silent no_pushd_silent
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
163 \ pushdsilent nopushdsilent pushd_to_home no_pushd_to_home pushdtohome nopushdtohome
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
164 \ always_last_prompt no_always_last_prompt alwayslastprompt noalwayslastprompt always_to_end
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
165 \ no_always_to_end alwaystoend noalwaystoend auto_list no_auto_list autolist noautolist auto_menu
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
166 \ no_auto_menu automenu noautomenu auto_name_dirs no_auto_name_dirs autonamedirs noautonamedirs
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
167 \ auto_param_keys no_auto_param_keys autoparamkeys noautoparamkeys auto_param_slash
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
168 \ no_auto_param_slash autoparamslash noautoparamslash auto_remove_slash no_auto_remove_slash
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
169 \ autoremoveslash noautoremoveslash bash_auto_list no_bash_auto_list bashautolist nobashautolist
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
170 \ complete_aliases no_complete_aliases completealiases nocompletealiases complete_in_word
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
171 \ no_complete_in_word completeinword nocompleteinword glob_complete no_glob_complete globcomplete
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
172 \ noglobcomplete hash_list_all no_hash_list_all hashlistall nohashlistall list_ambiguous
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
173 \ no_list_ambiguous listambiguous nolistambiguous list_beep no_list_beep listbeep nolistbeep
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
174 \ list_packed no_list_packed listpacked nolistpacked list_rows_first no_list_rows_first listrowsfirst
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
175 \ nolistrowsfirst list_types no_list_types listtypes nolisttypes menu_complete no_menu_complete
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
176 \ menucomplete nomenucomplete rec_exact no_rec_exact recexact norecexact bad_pattern no_bad_pattern
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
177 \ badpattern nobadpattern bare_glob_qual no_bare_glob_qual bareglobqual nobareglobqual brace_ccl
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
178 \ no_brace_ccl braceccl nobraceccl case_glob no_case_glob caseglob nocaseglob case_match
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
179 \ no_case_match casematch nocasematch case_paths no_case_paths casepaths nocasepaths csh_null_glob
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
180 \ no_csh_null_glob cshnullglob nocshnullglob equals no_equals noequals extended_glob no_extended_glob
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
181 \ extendedglob noextendedglob force_float no_force_float forcefloat noforcefloat glob no_glob noglob
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
182 \ glob_assign no_glob_assign globassign noglobassign glob_dots no_glob_dots globdots noglobdots
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
183 \ glob_star_short no_glob_star_short globstarshort noglobstarshort glob_subst no_glob_subst globsubst
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
184 \ noglobsubst hist_subst_pattern no_hist_subst_pattern histsubstpattern nohistsubstpattern
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
185 \ ignore_braces no_ignore_braces ignorebraces noignorebraces ignore_close_braces
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
186 \ no_ignore_close_braces ignoreclosebraces noignoreclosebraces ksh_glob no_ksh_glob kshglob nokshglob
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
187 \ magic_equal_subst no_magic_equal_subst magicequalsubst nomagicequalsubst mark_dirs no_mark_dirs
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
188 \ markdirs nomarkdirs multibyte no_multibyte nomultibyte nomatch no_nomatch nonomatch null_glob
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
189 \ no_null_glob nullglob nonullglob numeric_glob_sort no_numeric_glob_sort numericglobsort
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
190 \ nonumericglobsort rc_expand_param no_rc_expand_param rcexpandparam norcexpandparam rematch_pcre
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
191 \ no_rematch_pcre rematchpcre norematchpcre sh_glob no_sh_glob shglob noshglob unset no_unset nounset
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
192 \ warn_create_global no_warn_create_global warncreateglobal nowarncreateglobal warn_nested_var
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
193 \ no_warn_nested_var warnnestedvar no_warnnestedvar append_history no_append_history appendhistory
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
194 \ noappendhistory bang_hist no_bang_hist banghist nobanghist extended_history no_extended_history
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
195 \ extendedhistory noextendedhistory hist_allow_clobber no_hist_allow_clobber histallowclobber
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
196 \ nohistallowclobber hist_beep no_hist_beep histbeep nohistbeep hist_expire_dups_first
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
197 \ no_hist_expire_dups_first histexpiredupsfirst nohistexpiredupsfirst hist_fcntl_lock
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
198 \ no_hist_fcntl_lock histfcntllock nohistfcntllock hist_find_no_dups no_hist_find_no_dups
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
199 \ histfindnodups nohistfindnodups hist_ignore_all_dups no_hist_ignore_all_dups histignorealldups
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
200 \ nohistignorealldups hist_ignore_dups no_hist_ignore_dups histignoredups nohistignoredups
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
201 \ hist_ignore_space no_hist_ignore_space histignorespace nohistignorespace hist_lex_words
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
202 \ no_hist_lex_words histlexwords nohistlexwords hist_no_functions no_hist_no_functions
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
203 \ histnofunctions nohistnofunctions hist_no_store no_hist_no_store histnostore nohistnostore
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
204 \ hist_reduce_blanks no_hist_reduce_blanks histreduceblanks nohistreduceblanks hist_save_by_copy
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
205 \ no_hist_save_by_copy histsavebycopy nohistsavebycopy hist_save_no_dups no_hist_save_no_dups
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
206 \ histsavenodups nohistsavenodups hist_verify no_hist_verify histverify nohistverify
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
207 \ inc_append_history no_inc_append_history incappendhistory noincappendhistory
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
208 \ inc_append_history_time no_inc_append_history_time incappendhistorytime noincappendhistorytime
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
209 \ share_history no_share_history sharehistory nosharehistory all_export no_all_export allexport
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
210 \ noallexport global_export no_global_export globalexport noglobalexport global_rcs no_global_rcs
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
211 \ globalrcs noglobalrcs rcs no_rcs norcs aliases no_aliases noaliases clobber no_clobber noclobber
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
212 \ clobber_empty no_clobber_empty clobberempty noclobberempty correct no_correct nocorrect correct_all
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
213 \ no_correct_all correctall nocorrectall dvorak no_dvorak nodvorak flow_control no_flow_control
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
214 \ flowcontrol noflowcontrol ignore_eof no_ignore_eof ignoreeof noignoreeof interactive_comments
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
215 \ no_interactive_comments interactivecomments nointeractivecomments hash_cmds no_hash_cmds hashcmds
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
216 \ nohashcmds hash_dirs no_hash_dirs hashdirs nohashdirs hash_executables_only
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
217 \ no_hash_executables_only hashexecutablesonly nohashexecutablesonly mail_warning no_mail_warning
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
218 \ mailwarning nomailwarning path_dirs no_path_dirs pathdirs nopathdirs path_script no_path_script
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
219 \ pathscript nopathscript print_eight_bit no_print_eight_bit printeightbit noprinteightbit
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
220 \ print_exit_value no_print_exit_value printexitvalue noprintexitvalue rc_quotes no_rc_quotes
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
221 \ rcquotes norcquotes rm_star_silent no_rm_star_silent rmstarsilent normstarsilent rm_star_wait
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
222 \ no_rm_star_wait rmstarwait normstarwait short_loops no_short_loops shortloops noshortloops
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
223 \ short_repeat no_short_repeat shortrepeat noshortrepeat sun_keyboard_hack no_sun_keyboard_hack
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
224 \ sunkeyboardhack nosunkeyboardhack auto_continue no_auto_continue autocontinue noautocontinue
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
225 \ auto_resume no_auto_resume autoresume noautoresume bg_nice no_bg_nice bgnice nobgnice check_jobs
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
226 \ no_check_jobs checkjobs nocheckjobs check_running_jobs no_check_running_jobs checkrunningjobs
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
227 \ nocheckrunningjobs hup no_hup nohup long_list_jobs no_long_list_jobs longlistjobs nolonglistjobs
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
228 \ monitor no_monitor nomonitor notify no_notify nonotify posix_jobs posixjobs no_posix_jobs
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
229 \ noposixjobs prompt_bang no_prompt_bang promptbang nopromptbang prompt_cr no_prompt_cr promptcr
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
230 \ nopromptcr prompt_sp no_prompt_sp promptsp nopromptsp prompt_percent no_prompt_percent
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
231 \ promptpercent nopromptpercent prompt_subst no_prompt_subst promptsubst nopromptsubst
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
232 \ transient_rprompt no_transient_rprompt transientrprompt notransientrprompt alias_func_def
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
233 \ no_alias_func_def aliasfuncdef noaliasfuncdef c_bases no_c_bases cbases nocbases c_precedences
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
234 \ no_c_precedences cprecedences nocprecedences debug_before_cmd no_debug_before_cmd debugbeforecmd
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
235 \ nodebugbeforecmd err_exit no_err_exit errexit noerrexit err_return no_err_return errreturn
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
236 \ noerrreturn eval_lineno no_eval_lineno evallineno noevallineno exec no_exec noexec function_argzero
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
237 \ no_function_argzero functionargzero nofunctionargzero local_loops no_local_loops localloops
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
238 \ nolocalloops local_options no_local_options localoptions nolocaloptions local_patterns
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
239 \ no_local_patterns localpatterns nolocalpatterns local_traps no_local_traps localtraps nolocaltraps
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
240 \ multi_func_def no_multi_func_def multifuncdef nomultifuncdef multios no_multios nomultios
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
241 \ octal_zeroes no_octal_zeroes octalzeroes nooctalzeroes pipe_fail no_pipe_fail pipefail nopipefail
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
242 \ source_trace no_source_trace sourcetrace nosourcetrace typeset_silent no_typeset_silent
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
243 \ typesetsilent notypesetsilent typeset_to_unset no_typeset_to_unset typesettounset notypesettounset
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
244 \ verbose no_verbose noverbose xtrace no_xtrace noxtrace append_create no_append_create appendcreate
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
245 \ noappendcreate bash_rematch no_bash_rematch bashrematch nobashrematch bsd_echo no_bsd_echo bsdecho
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
246 \ nobsdecho continue_on_error no_continue_on_error continueonerror nocontinueonerror
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
247 \ csh_junkie_history no_csh_junkie_history cshjunkiehistory nocshjunkiehistory csh_junkie_loops
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
248 \ no_csh_junkie_loops cshjunkieloops nocshjunkieloops csh_junkie_quotes no_csh_junkie_quotes
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
249 \ cshjunkiequotes nocshjunkiequotes csh_nullcmd no_csh_nullcmd cshnullcmd nocshnullcmd ksh_arrays
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
250 \ no_ksh_arrays ksharrays noksharrays ksh_autoload no_ksh_autoload kshautoload nokshautoload
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
251 \ ksh_option_print no_ksh_option_print kshoptionprint nokshoptionprint ksh_typeset no_ksh_typeset
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
252 \ kshtypeset nokshtypeset ksh_zero_subscript no_ksh_zero_subscript kshzerosubscript
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
253 \ nokshzerosubscript posix_aliases no_posix_aliases posixaliases noposixaliases posix_argzero
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
254 \ no_posix_argzero posixargzero noposixargzero posix_builtins no_posix_builtins posixbuiltins
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
255 \ noposixbuiltins posix_identifiers no_posix_identifiers posixidentifiers noposixidentifiers
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
256 \ posix_strings no_posix_strings posixstrings noposixstrings posix_traps no_posix_traps posixtraps
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
257 \ noposixtraps sh_file_expansion no_sh_file_expansion shfileexpansion noshfileexpansion sh_nullcmd
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
258 \ no_sh_nullcmd shnullcmd noshnullcmd sh_option_letters no_sh_option_letters shoptionletters
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
259 \ noshoptionletters sh_word_split no_sh_word_split shwordsplit noshwordsplit traps_async
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
260 \ no_traps_async trapsasync notrapsasync interactive no_interactive nointeractive login no_login
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
261 \ nologin privileged no_privileged noprivileged restricted no_restricted norestricted shin_stdin
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
262 \ no_shin_stdin shinstdin noshinstdin single_command no_single_command singlecommand nosinglecommand
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
263 \ beep no_beep nobeep combining_chars no_combining_chars combiningchars nocombiningchars emacs
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
264 \ no_emacs noemacs overstrike no_overstrike nooverstrike single_line_zle no_single_line_zle
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
265 \ singlelinezle nosinglelinezle vi no_vi novi zle no_zle nozle brace_expand no_brace_expand
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
266 \ braceexpand nobraceexpand dot_glob no_dot_glob dotglob nodotglob hash_all no_hash_all hashall
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
267 \ nohashall hist_append no_hist_append histappend nohistappend hist_expand no_hist_expand histexpand
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
268 \ nohistexpand log no_log nolog mail_warn no_mail_warn mailwarn nomailwarn one_cmd no_one_cmd onecmd
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
269 \ noonecmd physical no_physical nophysical prompt_vars no_prompt_vars promptvars nopromptvars stdin
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
270 \ no_stdin nostdin track_all no_track_all trackall notrackall
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
271 syn case match
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
272
12968
45987b1b77dc Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 11914
diff changeset
273 syn keyword zshTypes float integer local typeset declare private readonly
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
275 " XXX: this may be too much
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
276 " syn match zshSwitches '\s\zs--\=[a-zA-Z0-9-]\+'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
278 " TODO: $[...] is the same as $((...)), so add that as well.
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
279 syn cluster zshSubst contains=zshSubst,zshOldSubst,zshMathSubst
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
280 syn cluster zshSubstQuoted contains=zshSubstQuoted,zshOldSubst,zshMathSubst
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
281 exe 'syn region zshSubst matchgroup=zshSubstDelim transparent start=/\$(/ skip=/\\)/ end=/)/ contains='.s:contained. ' fold'
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
282 exe 'syn region zshSubstQuoted matchgroup=zshSubstDelim transparent start=/\$(/ skip=/\\)/ end=/)/ contains='.s:contained. ' fold'
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
283 syn region zshSubstQuoted matchgroup=zshSubstDelim start='\${' skip='\\}' end='}' contains=@zshSubst,zshBrackets,zshQuoted fold
7924
00d64eb49ce1 commit https://github.com/vim/vim/commit/681baaf4a4c81418693dcafb81421a8614832e91
Christian Brabandt <cb@256bit.org>
parents: 7477
diff changeset
284 syn region zshParentheses transparent start='(' skip='\\)' end=')' fold
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
285 syn region zshGlob start='(#' end=')'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
286 syn region zshMathSubst matchgroup=zshSubstDelim transparent
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
287 \ start='\%(\$\?\)[<=>]\@<!((' skip='\\)' end='))'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
288 \ contains=zshParentheses,@zshSubst,zshNumber,
26708
f0d7cb510ce3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
289 \ @zshDerefs,zshString fold
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
290 " The ms=s+1 prevents matching zshBrackets several times on opening brackets
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
291 " (see https://github.com/chrisbra/vim-zsh/issues/21#issuecomment-576330348)
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
292 syn region zshBrackets contained transparent start='{'ms=s+1 skip='\\}'
7924
00d64eb49ce1 commit https://github.com/vim/vim/commit/681baaf4a4c81418693dcafb81421a8614832e91
Christian Brabandt <cb@256bit.org>
parents: 7477
diff changeset
293 \ end='}' fold
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
294 exe 'syn region zshBrackets transparent start=/{/ms=s+1 skip=/\\}/ end=/}/ contains='.s:contained. ' fold'
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
295
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
296 syn region zshSubst matchgroup=zshSubstDelim start='\${' skip='\\}'
7924
00d64eb49ce1 commit https://github.com/vim/vim/commit/681baaf4a4c81418693dcafb81421a8614832e91
Christian Brabandt <cb@256bit.org>
parents: 7477
diff changeset
297 \ end='}' contains=@zshSubst,zshBrackets,zshQuoted,zshString fold
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
298 exe 'syn region zshOldSubst matchgroup=zshSubstDelim start=/`/ skip=/\\[\\`]/ end=/`/ contains='.s:contained. ',zshOldSubst fold'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
300 syn sync minlines=50 maxlines=90
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
301 syn sync match zshHereDocSync grouphere NONE '<<-\=\s*\%(\\\=\S\+\|\(["']\)\S\+\1\)'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
302 syn sync match zshHereDocEndSync groupthere NONE '^\s*EO\a\+\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
303
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
304 syn keyword zshTodo contained TODO FIXME XXX NOTE
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
305
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
306 syn region zshComment oneline start='\%(^\|\s\+\)#' end='$'
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
307 \ contains=zshTodo,@Spell fold
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
308
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
309 syn region zshComment start='^\s*#' end='^\%(\s*#\)\@!'
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
310 \ contains=zshTodo,@Spell fold
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
311
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
312 syn match zshPreProc '^\%1l#\%(!\|compdef\|autoload\).*$'
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19646
diff changeset
313
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
314 hi def link zshTodo Todo
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
315 hi def link zshComment Comment
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
316 hi def link zshPreProc PreProc
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
317 hi def link zshQuoted SpecialChar
19646
847a300aa244 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
318 hi def link zshPOSIXQuoted SpecialChar
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
319 hi def link zshString String
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
320 hi def link zshStringDelimiter zshString
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
321 hi def link zshPOSIXString zshString
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
322 hi def link zshJobSpec Special
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
323 hi def link zshPrecommand Special
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
324 hi def link zshDelimiter Keyword
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
325 hi def link zshConditional Conditional
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
326 hi def link zshCase zshConditional
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
327 hi def link zshCaseIn zshCase
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
328 hi def link zshException Exception
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
329 hi def link zshRepeat Repeat
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
330 hi def link zshKeyword Keyword
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
331 hi def link zshFunction None
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
332 hi def link zshKSHFunction zshFunction
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
333 hi def link zshHereDoc String
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
334 hi def link zshOperator None
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2072
diff changeset
335 hi def link zshRedir Operator
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
336 hi def link zshVariable None
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
337 hi def link zshVariableDef zshVariable
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
338 hi def link zshDereferencing PreProc
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
339 hi def link zshShortDeref zshDereferencing
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
340 hi def link zshLongDeref zshDereferencing
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
341 hi def link zshDeref zshDereferencing
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
342 hi def link zshDollarVar zshDereferencing
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
343 hi def link zshCommands Keyword
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
344 hi def link zshOptStart Keyword
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
345 hi def link zshOption Constant
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
346 hi def link zshTypes Type
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
347 hi def link zshSwitches Special
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
348 hi def link zshNumber Number
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
349 hi def link zshSubst PreProc
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26708
diff changeset
350 hi def link zshSubstQuoted zshSubst
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
351 hi def link zshMathSubst zshSubst
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
352 hi def link zshOldSubst zshSubst
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
353 hi def link zshSubstDelim zshSubst
11400
0f8713fe20dc Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 8246
diff changeset
354 hi def link zshGlob zshSubst
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 let b:current_syntax = "zsh"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
358 let &cpo = s:cpo_save
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
359 unlet s:cpo_save