3 * Description: WMLScript language.
4 * Author: Markku Rossi <mtr@iki.fi>
7 state wmlscript_string extends Highlight
18 state wmlscript extends HighlightEntry
34 /* String constants. */
46 call (wmlscript_string);
50 /* Function definitions. */
51 /\b(function)([ \t]+)([A-Za-z\$_][A-Za-z\$_0-9]*)([ \t]*\()/ {
58 function_name_face (true);
60 function_name_face (false);
65 /* This is actually punctuation. We define it here so the `div'
66 part won't get accidentally highlighted. */
72 (build-re '(access agent break case catch class const continue
73 debugger default delete div do domain else enum equiv export
74 extends extern false finally for function header http if import
75 in invalid isvalid lib meta name new null path private public
76 return sizeof struct super switch this throw true try typeof use
79 /\b(a(ccess|gent)|break|c(a(se|tch)|lass|on(st|tinue))\
80 |d(e(bugger|fault|lete)|iv|o(|main))\
81 |e(lse|num|quiv|x(port|te(nds|rn)))|f(alse|inally|or|unction)\
82 |h(eader|ttp)|i(f|mport|n(|valid)|svalid)|lib|meta|n(ame|ew|ull)\
83 |p(ath|rivate|ublic)|return|s(izeof|truct|uper|witch)\
84 |t(h(is|row)|r(ue|y)|ypeof)|use(|r)|v(ar|oid)|with)\b/ {
90 /* Built-in libraries.
91 (build-re '(Lang Float String URL WmlBrowser Dialogs))
93 /\b(Dialogs|Float|Lang|String|URL|WmlBrowser)(\.)\
94 ([a-zA-Z_][a-zA-Z_0-9]*)\b/ {
103 builtin_face (false);