3 * Description: C-Shell script language
4 * Author: Jean-Marc Calvez <jean-marc.calvez@st.com>
7 state csh extends HighlightEntry
9 /* Comments. From sh description */
17 /* String constants. From sh */
25 /* Excutable script. From sh */
27 reference_face (true);
30 reference_face (false);
34 (build-re '(: alias bg break breaksw case cd chdir continue default dirs
35 echo eval exec exit fg foreach end glob goto hashstat history if then
36 else endif jobs kill limit login logout nice nohup notify onintr popd
37 pushd rehash repeat set setenv shift source stop suspend switch case
38 endsw time umask unalias unhash unlimit unset wait while % @))
40 /\b(%|:|@|alias|b(g|reak(|sw))|c(ase()|d|hdir|ontinue)|d(efault|irs)\
41 |e(cho|lse|nd(|if|sw)|val|x(ec|it))|f(g|oreach)|g(lob|oto)\
42 |h(ashstat|istory)|if|jobs|kill|l(imit|og(in|out))|n(ice|o(hup|tify))\
43 |onintr|p(opd|ushd)|re(hash|peat)\
44 |s(et(|env)|hift|ource|top|uspend|witch)|t(hen|ime)\
45 |u(mask|n(alias|hash|limit|set))|w(ait|hile))\b/ {
51 /* Predefined variables:
52 (build-re '(argv cdpath cwd echo fignore filec hardpaths histchars
53 history home ignoreeof mail nobeep noclobber noglob nonomatch notify path
54 prompt savehist shell status verbose)) */
55 /\b(argv|c(dpath|wd)|echo|fi(gnore|lec)|h(ardpaths|ist(chars|ory)|ome)\
56 |ignoreeof|mail|no(beep|clobber|glob|nomatch|tify)|p(ath|rompt)\
57 |s(avehist|hell|tatus)|verbose)\b/ {