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 /* Ignore escaped quote marks */
36 /* Excutable script. From sh */
38 reference_face (true);
41 reference_face (false);
45 (build-re '(: alias bg break breaksw case cd chdir continue default dirs
46 echo eval exec exit fg foreach end glob goto hashstat history if then
47 else endif jobs kill limit login logout nice nohup notify onintr popd
48 pushd rehash repeat set setenv shift source stop suspend switch case
49 endsw time umask unalias unhash unlimit unset wait while % @))
51 /\b(%|:|@|alias|b(g|reak(|sw))|c(ase()|d|hdir|ontinue)|d(efault|irs)\
52 |e(cho|lse|nd(|if|sw)|val|x(ec|it))|f(g|oreach)|g(lob|oto)\
53 |h(ashstat|istory)|if|jobs|kill|l(imit|og(in|out))|n(ice|o(hup|tify))\
54 |onintr|p(opd|ushd)|re(hash|peat)\
55 |s(et(|env)|hift|ource|top|uspend|witch)|t(hen|ime)\
56 |u(mask|n(alias|hash|limit|set))|w(ait|hile))\b/ {
62 /* Predefined variables:
63 (build-re '(argv cdpath cwd echo fignore filec hardpaths histchars
64 history home ignoreeof mail nobeep noclobber noglob nonomatch notify path
65 prompt savehist shell status verbose)) */
66 /\b(argv|c(dpath|wd)|echo|fi(gnore|lec)|h(ardpaths|ist(chars|ory)|ome)\
67 |ignoreeof|mail|no(beep|clobber|glob|nomatch|tify)|p(ath|rompt)\
68 |s(avehist|hell|tatus)|verbose)\b/ {