3 * Description: States program's definition files.
4 * Author: Markku Rossi <mtr@iki.fi>
7 state states_regexp extends Highlight
18 state states extends HighlightEntry
28 /* String constants. */
36 /* Regular expressions. */
44 /* Subroutine definitions. */
45 /\b(sub)([ \t]+)([$a-zA-Z_][$a-zA-Z_0-9]*)([ \t]*\()/ {
52 function_name_face (true);
54 function_name_face (false);
60 (build-re '(BEGIN END div else extends for if local namerules
61 return start startrules state sub while))
63 /\b(BEGIN|END|div|e(lse|xtends)|for|if|local|namerules|return\
64 |s(ta(rt(|rules)|te)|ub)|while)\b/ {
71 (build-re '(call calln check_namerules check_startrules concat
72 getenv int length list panic prereq print regmatch regsub
73 regsuball require_state sprintf strcmp string strncmp substring))
75 /\b(c(all(|n)|heck_(namerules|startrules)|oncat)|getenv|int|l(ength|ist)\
76 |p(anic|r(ereq|int))|re(g(match|sub(|all))|quire_state)\
77 |s(printf|tr(cmp|ing|ncmp)|ubstring))([ \t]*\()/ {
81 language_print (substring ($0, length ($1), length ($0)));