3 * Description: Z-shell programming language.
4 * Author: Jean-Marc Calvez <jean-marc.calvez@st.com>
7 state zsh extends HighlightEntry
17 /* String constants. */
25 /* Ignore escaped quote marks */
36 /* Excutable script. */
38 reference_face (true);
41 reference_face (false);
45 (build-re '(: noglob nocorrect exec command if then elif else fi for in do
46 done while until repeat case esac select function time foreach end coproc
47 return alias autoload bg bindkey break builtin bye cd chdir compctl
48 continue declare dirs disable disown echo echotc emulate enabke eval exec
49 exit export false fc fg functions getln getopts hash history integer jobs
50 kill let limit local log logout popd print pushd pushln pwd read readonly
51 rehash return sched set setopt shift source suspend test times trap
52 ttyctl type typeset ulimit umask unalias unfunction unhash unlimit unset
53 unsetopt vared wait whence where which))
55 /\b(:|a(lias|utoload)|b(g|indkey|reak|uiltin|ye)\
56 |c(ase|d|hdir|o(m(mand|pctl)|ntinue|proc))\
57 |d(eclare|i(rs|s(able|own))|o(|ne))\
58 |e(cho(|tc)|l(if|se)|mulate|n(abke|d)|sac|val|x(ec()|it|port))\
59 |f(alse|c|g|i|or(|each)|unction(|s))|get(ln|opts)|h(ash|istory)\
60 |i(f|n(|teger))|jobs|kill|l(et|imit|o(cal|g(|out)))|no(correct|glob)\
61 |p(opd|rint|ush(d|ln)|wd)|re(ad(|only)|hash|peat|turn())\
62 |s(ched|e(lect|t(|opt))|hift|ource|uspend)\
63 |t(est|hen|ime(|s)|rap|tyctl|ype(|set))\
64 |u(limit|mask|n(alias|function|hash|limit|set(|opt)|til))|vared\
65 |w(ait|h(e(nce|re)|i(ch|le))))\b/ {
71 /* special functions (built-in)
72 (build-re '(chpwd precmd periodic argv status signals cdpath fignore
73 fpath histchars mailpath manpath path psvar prompt watch))
75 /\b(argv|c(dpath|hpwd)|f(ignore|path)|histchars|ma(ilpath|npath)\
76 |p(ath|eriodic|r(ecmd|ompt)|svar)|s(ignals|tatus)|watch)\b/ {