| Server IP : 172.67.134.114 / Your IP : 104.23.197.123 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/enscript/hl/ |
Upload File : |
/**
* Name: csh
* Description: C-Shell script language
* Author: Jean-Marc Calvez <[email protected]>
*/
state csh extends HighlightEntry
{
/* Comments. From sh description */
/#/ {
comment_face (true);
language_print ($0);
call (eat_one_line);
comment_face (false);
}
/* String constants. From sh */
/\"/ {
string_face (true);
language_print ($0);
call (c_string);
string_face (false);
}
/* Ignore escaped quote marks */
/\\\"/ {
language_print ($0);
}
/\\\'/ {
language_print ($0);
}
/\\\`/ {
language_print ($0);
}
/* Excutable script. From sh */
/^#!/ {
reference_face (true);
language_print ($0);
call (eat_one_line);
reference_face (false);
}
/* Keywords. :
(build-re '(: alias bg break breaksw case cd chdir continue default dirs
echo eval exec exit fg foreach end glob goto hashstat history if then
else endif jobs kill limit login logout nice nohup notify onintr popd
pushd rehash repeat set setenv shift source stop suspend switch case
endsw time umask unalias unhash unlimit unset wait while % @))
*/
/\b(%|:|@|alias|b(g|reak(|sw))|c(ase()|d|hdir|ontinue)|d(efault|irs)\
|e(cho|lse|nd(|if|sw)|val|x(ec|it))|f(g|oreach)|g(lob|oto)\
|h(ashstat|istory)|if|jobs|kill|l(imit|og(in|out))|n(ice|o(hup|tify))\
|onintr|p(opd|ushd)|re(hash|peat)\
|s(et(|env)|hift|ource|top|uspend|witch)|t(hen|ime)\
|u(mask|n(alias|hash|limit|set))|w(ait|hile))\b/ {
keyword_face (true);
language_print ($0);
keyword_face (false);
}
/* Predefined variables:
(build-re '(argv cdpath cwd echo fignore filec hardpaths histchars
history home ignoreeof mail nobeep noclobber noglob nonomatch notify path
prompt savehist shell status verbose)) */
/\b(argv|c(dpath|wd)|echo|fi(gnore|lec)|h(ardpaths|ist(chars|ory)|ome)\
|ignoreeof|mail|no(beep|clobber|glob|nomatch|tify)|p(ath|rompt)\
|s(avehist|hell|tatus)|verbose)\b/ {
builtin_face (true);
language_print ($0);
builtin_face (false);
}
}
/*
Local variables:
mode: c
End:
*/