3 * Description: Tcl programming language.
4 * Author: Markku Rossi <mtr@iki.fi>
7 state tcl_comment extends Highlight
15 state tcl_proc_arglist extends Highlight
17 /* List of arguments. */
20 variable_name_face (true);
21 str = match_balanced_block (/{/, /}/);
22 variable_name_face (false);
26 /* Only one argument. */
28 variable_name_face (true);
30 variable_name_face (false);
33 /* No idea what this is??? */
40 state tcl extends HighlightEntry
55 /* String constants. */
63 /* Procedure definitions. */
64 /\b(proc)([ \t]+)([A-Za-z_0-9]+)([ \t]+)/ {
74 function_name_face (true);
76 function_name_face (false);
78 /* Second middle garbage. */
81 /* Function argument list. */
82 call (tcl_proc_arglist);
85 /* Simple variable reference. */
86 /(\$)([A-Za-z_0-9]+)/ {
88 variable_name_face (true);
90 variable_name_face (false);
93 /* {}-enclosed variable reference. */
96 variable_name_face (true);
97 str = match_balanced_block (/{/, /}/);
98 variable_name_face (false);
105 Http Tcl after append array bgerror break case catch cd clock
106 concat continue eof error eval exec exit expr fblocked fconfigure file
107 fileevent filename flush for foreach format gets glob global history
108 if incr info interp join lappend library lindex linsert list llength
109 load lose lrange lreplace lsearch lsort open package pid pkg_mkIndex
110 proc puts pwd read regexp regsub rename return scan seek set socket
111 source split string subst switch tclvars tell time trace unknown unset
112 update uplevel upvar vwait while
115 bell bind bindtags bitmap button canvas checkbutton clipboard destroy
116 entry event focus font frame grab grid image label listbox lower menu
117 menubutton message option options pack photo place radiobutton raise
118 scale scrollbar selection send text tk tk_bindForTraversal tk_bisque
119 tk_chooseColor tk_dialog tk_focusFollowsMouse tk_focusNext
120 tk_focusPrev tk_getOpenFile tk_getSaveFile tk_menuBar tk_messageBox
121 tk_optionMenu tk_popup tk_setPalette tkerror tkvars tkwait toplevel
125 /\b(Http|Tcl|a(fter|ppend|rray)\
126 |b(ell|gerror|i(nd(|tags)|tmap)|reak|utton)\
127 |c(a(nvas|se|tch)|d|heckbutton|l(ipboard|ock)|on(cat|tinue))|destroy\
128 |e(ntry|of|rror|v(al|ent)|x(ec|it|pr))\
129 |f(blocked|configure|ile(|event|name)|lush|o(cus|nt|r(|each|mat))|rame)\
130 |g(ets|lob(|al)|r(ab|id))|history|i(f|mage|n(cr|fo|terp))|join\
131 |l(a(bel|ppend)|i(brary|n(dex|sert)|st(|box))|length|o(ad|se|wer)\
132 |r(ange|eplace)|s(earch|ort))\
133 |me(nu(|button)|ssage)|op(en|tion(|s))\
134 |p(ack(|age)|hoto|id|kg_mkIndex|lace|roc|uts|wd)\
135 |r(a(diobutton|ise)|e(ad|g(exp|sub)|name|turn))\
136 |s(c(a(le|n)|rollbar)|e(ek|lection|nd|t)|o(cket|urce)|plit|tring|ubst\
138 |t(clvars|e(ll|xt)|ime\
140 |_(bi(ndForTraversal|sque)|chooseColor|dialog\
141 |focus(FollowsMouse|Next|Prev)|get(OpenFile|SaveFile)\
142 |me(nuBar|ssageBox)|optionMenu|popup|setPalette)\
145 |u(n(known|set)|p(date|level|var))|vwait|w(hile|info|m))\b/ {
148 keyword_face (false);