annotate runtime/syntax/zsh.vim @ 1929:9230c45fdde6 v7.2.226

updated for version 7.2-226
author vimboss
date Thu, 09 Jul 2009 18:06:49 +0000
parents f4f8014d516e
children 4a1bcdd9ea55
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
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
2 " Language: Zsh shell script
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
4 " Latest Revision: 2008-07-17
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
6 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
10 let s:cpo_save = &cpo
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
11 set cpo&vim
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
12
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 1125
diff changeset
13 setlocal iskeyword+=-
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
14
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
15 syn keyword zshTodo contained TODO FIXME XXX NOTE
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
16
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
17 syn region zshComment display oneline start='\%(^\|\s\)#' end='$'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
18 \ contains=zshTodo,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
19
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
20 syn match zshPreProc '^\%1l#\%(!\|compdef\|autoload\).*$'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
21
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
22 syn match zshQuoted '\\.'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
23 syn region zshString matchgroup=zshStringDelimiter start=+"+ end=+"+
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
24 \ contains=zshQuoted,@zshDerefs,@zshSubst
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
25 syn region zshString matchgroup=zshStringDelimiter start=+'+ end=+'+
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
26 " XXX: This should probably be more precise, but Zsh seems a bit confused about it itself
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
27 syn region zshPOSIXString matchgroup=zshStringDelimiter start=+\$'+
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
28 \ end=+'+ contains=zshQuoted
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
29 syn match zshJobSpec '%\(\d\+\|?\=\w\+\|[%+-]\)'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
30
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
31 syn keyword zshPrecommand noglob nocorrect exec command builtin - time
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
32
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
33 syn keyword zshDelimiter do done
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
34
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
35 syn keyword zshConditional if then elif else fi case in esac select
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
36
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
37 syn keyword zshRepeat while until repeat
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
38
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
39 syn keyword zshRepeat for foreach nextgroup=zshVariable skipwhite
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
40
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
41 syn keyword zshException always
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
42
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
43 syn keyword zshKeyword function nextgroup=zshKSHFunction skipwhite
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
44
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
45 syn match zshKSHFunction contained '\k\+'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
46 syn match zshFunction '^\s*\k\+\ze\s*()'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
47
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
48 syn match zshOperator '||\|&&\|;\|&!\='
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
50 syn match zshRedir '\d\=\(<\|<>\|<<<\|<&\s*[0-9p-]\=\)'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
51 syn match zshRedir '\d\=\(>\|>>\|>&\s*[0-9p-]\=\|&>\|>>&\|&>>\)[|!]\='
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
52 syn match zshRedir '|&\='
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
53
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
54 syn region zshHereDoc matchgroup=zshRedir
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
55 \ start='<\@<!<<\s*\z([^<]\S*\)'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
56 \ end='^\z1\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
57 \ contains=@zshSubst
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
58 syn region zshHereDoc matchgroup=zshRedir
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
59 \ start='<\@<!<<\s*\\\z(\S\+\)'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
60 \ end='^\z1\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
61 \ contains=@zshSubst
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
62 syn region zshHereDoc matchgroup=zshRedir
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
63 \ start='<\@<!<<-\s*\\\=\z(\S\+\)'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
64 \ end='^\s*\z1\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
65 \ contains=@zshSubst
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
66 syn region zshHereDoc matchgroup=zshRedir
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
67 \ start=+<\@<!<<\s*\(["']\)\z(\S\+\)\1+
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
68 \ end='^\z1\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
69 syn region zshHereDoc matchgroup=zshRedir
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
70 \ start=+<\@<!<<-\s*\(["']\)\z(\S\+\)\1+
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
71 \ end='^\s*\z1\>'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
72
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
73 syn match zshVariable '\<\h\w*' contained
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
74
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
75 syn match zshVariableDef '\<\h\w*\ze+\=='
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
76 " XXX: how safe is this?
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
77 syn region zshVariableDef oneline
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
78 \ start='\$\@<!\<\h\w*\[' end='\]\ze+\=='
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
79 \ contains=@zshSubst
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
80
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
81 syn cluster zshDerefs contains=zshShortDeref,zshLongDeref,zshDeref
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
83 if !exists("g:zsh_syntax_variables")
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
84 let s:zsh_syntax_variables = 'all'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
85 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
86 let s:zsh_syntax_variables = g:zsh_syntax_variables
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
87 endif
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
88
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
89 if s:zsh_syntax_variables =~ 'short\|all'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
90 syn match zshShortDeref '\$[!#$*@?_-]\w\@!'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
91 syn match zshShortDeref '\$[=^~]*[#+]*\d\+\>'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
92 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
94 if s:zsh_syntax_variables =~ 'long\|all'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
95 syn match zshLongDeref '\$\%(ARGC\|argv\|status\|pipestatus\|CPUTYPE\|EGID\|EUID\|ERRNO\|GID\|HOST\|LINENO\|LOGNAME\)'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
96 syn match zshLongDeref '\$\%(MACHTYPE\|OLDPWD OPTARG\|OPTIND\|OSTYPE\|PPID\|PWD\|RANDOM\|SECONDS\|SHLVL\|signals\)'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
97 syn match zshLongDeref '\$\%(TRY_BLOCK_ERROR\|TTY\|TTYIDLE\|UID\|USERNAME\|VENDOR\|ZSH_NAME\|ZSH_VERSION\|REPLY\|reply\|TERM\)'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
98 endif
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
99
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
100 if s:zsh_syntax_variables =~ 'all'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
101 syn match zshDeref '\$[=^~]*[#+]*\h\w*\>'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
102 else
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
103 syn match zshDeref transparent contains=NONE '\$[=^~]*[#+]*\h\w*\>'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
104 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
106 syn match zshCommands '\%(^\|\s\)[.:]\ze\s'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
107 syn keyword zshCommands alias autoload bg bindkey break bye cap cd
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
108 \ chdir clone comparguments compcall compctl
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
109 \ compdescribe compfiles compgroups compquote
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
110 \ comptags comptry compvalues continue dirs
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
111 \ disable disown echo echotc echoti emulate
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
112 \ enable eval exec exit export false fc fg
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
113 \ functions getcap getln getopts hash history
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
114 \ jobs kill let limit log logout popd print
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
115 \ printf pushd pushln pwd r read readonly
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
116 \ rehash return sched set setcap setopt shift
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
117 \ source stat suspend test times trap true
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
118 \ ttyctl type ulimit umask unalias unfunction
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
119 \ unhash unlimit unset unsetopt vared wait
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
120 \ whence where which zcompile zformat zftp zle
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
121 \ zmodload zparseopts zprof zpty zregexparse
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
122 \ zsocket zstyle ztcp
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
123
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
124 syn keyword zshTypes float integer local typeset declare
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
126 " XXX: this may be too much
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
127 " syn match zshSwitches '\s\zs--\=[a-zA-Z0-9-]\+'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
129 syn match zshNumber '[+-]\=\<\d\+\>'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
130 syn match zshNumber '[+-]\=\<0x\x\+\>'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
131 syn match zshNumber '[+-]\=\<0\o\+\>'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
132 syn match zshNumber '[+-]\=\d\+#[-+]\=\w\+\>'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
133 syn match zshNumber '[+-]\=\d\+\.\d\+\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
135 " TODO: $[...] is the same as $((...)), so add that as well.
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
136 syn cluster zshSubst contains=zshSubst,zshOldSubst,zshMathSubst
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
137 syn region zshSubst matchgroup=zshSubstDelim transparent
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
138 \ start='\$(' skip='\\)' end=')' contains=TOP
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
139 syn region zshParentheses transparent start='(' skip='\\)' end=')'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
140 syn region zshMathSubst matchgroup=zshSubstDelim transparent
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
141 \ start='\$((' skip='\\)'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
142 \ matchgroup=zshSubstDelim end='))'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
143 \ contains=zshParentheses,@zshSubst,zshNumber,
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
144 \ @zshDerefs,zshString
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
145 syn region zshBrackets contained transparent start='{' skip='\\}'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
146 \ end='}'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
147 syn region zshSubst matchgroup=zshSubstDelim start='\${' skip='\\}'
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
148 \ end='}' contains=@zshSubst,zshBrackets,zshQuoted,zshString
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
149 syn region zshOldSubst matchgroup=zshSubstDelim start=+`+ skip=+\\`+
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
150 \ end=+`+ contains=TOP,zshOldSubst
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
152 syn sync minlines=50
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
153 syn sync match zshHereDocSync grouphere NONE '<<-\=\s*\%(\\\=\S\+\|\(["']\)\S\+\1\)'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
154 syn sync match zshHereDocEndSync groupthere NONE '^\s*EO\a\+\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
155
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
156 hi def link zshTodo Todo
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
157 hi def link zshComment Comment
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
158 hi def link zshPreProc PreProc
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
159 hi def link zshQuoted SpecialChar
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
160 hi def link zshString String
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
161 hi def link zshStringDelimiter zshString
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
162 hi def link zshPOSIXString zshString
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
163 hi def link zshJobSpec Special
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
164 hi def link zshPrecommand Special
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
165 hi def link zshDelimiter Keyword
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
166 hi def link zshConditional Conditional
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
167 hi def link zshException Exception
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
168 hi def link zshRepeat Repeat
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
169 hi def link zshKeyword Keyword
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
170 hi def link zshFunction None
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
171 hi def link zshKSHFunction zshFunction
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
172 hi def link zshHereDoc String
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
173 if 0
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
174 hi def link zshOperator Operator
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
175 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
176 hi def link zshOperator None
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 endif
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
178 if 1
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
179 hi def link zshRedir Operator
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
180 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
181 hi def link zshRedir None
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
182 endif
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
183 hi def link zshVariable None
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
184 hi def link zshVariableDef zshVariable
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
185 hi def link zshDereferencing PreProc
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
186 if s:zsh_syntax_variables =~ 'short\|all'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
187 hi def link zshShortDeref zshDereferencing
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
188 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
189 hi def link zshShortDeref None
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
190 endif
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
191 if s:zsh_syntax_variables =~ 'long\|all'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
192 hi def link zshLongDeref zshDereferencing
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
193 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
194 hi def link zshLongDeref None
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
195 endif
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
196 if s:zsh_syntax_variables =~ 'all'
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
197 hi def link zshDeref zshDereferencing
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
198 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
199 hi def link zshDeref None
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
200 endif
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
201 hi def link zshCommands Keyword
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
202 hi def link zshTypes Type
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
203 hi def link zshSwitches Special
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
204 hi def link zshNumber Number
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
205 hi def link zshSubst PreProc
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
206 hi def link zshMathSubst zshSubst
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
207 hi def link zshOldSubst zshSubst
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
208 hi def link zshSubstDelim zshSubst
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 let b:current_syntax = "zsh"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
212 let &cpo = s:cpo_save
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
213 unlet s:cpo_save