]> git.stg.codes - stg.git/blob - doc/xslt/highlighting/tcl-hl.xml
Help book chapter 3 complete
[stg.git] / doc / xslt / highlighting / tcl-hl.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 xslthl highlighter definition fof Tcl/Tk.
5 written by Arndt Roger Schneider
6
7 Copyright 2008 Arndt Roger Schneider
8 License: xlib/libpng
9
10 This software is provided "as-is", without any express or implied
11 warranty. In no event will the authors be held liable for any damages
12 arising from the use of this software.
13
14 Permission is granted to anyone to use this software for any purpose,
15 including commercial applications, and to alter it and redistribute it
16 freely, subject to the following restrictions:
17
18 1. The origin of this software must not be misrepresented; you must
19    not claim that you wrote the original software. If you use this
20    software in a product, an acknowledgment in the product
21    documentation would be appreciated but is not required.
22
23 2. Altered source versions must be plainly marked as such, and must
24    not be misrepresented as being the original software.
25
26 3. This notice may not be removed or altered from any source
27    distribution.
28    
29 -->
30 <highlighters>
31         <highlighter type="oneline-comment">#</highlighter>
32         <highlighter type="string">
33                 <string>"</string>
34                 <escape>\</escape>
35         </highlighter>
36         <highlighter type="regex">
37                 <pattern>-[\p{javaJavaIdentifierStart}][\p{javaJavaIdentifierPart}]+
38                 </pattern>
39                 <style>none</style>
40         </highlighter>
41         <highlighter type="number">
42                 <point>.</point>
43                 <ignoreCase />
44         </highlighter>
45         <highlighter type="keywords">
46                 <!-- Tcl and itcl / structural -->
47                 <keyword>if</keyword>
48                 <keyword>then</keyword>
49                 <keyword>else</keyword>
50                 <keyword>elseif</keyword>
51                 <keyword>for</keyword>
52                 <keyword>foreach</keyword>
53                 <keyword>break</keyword>
54                 <keyword>continue</keyword>
55                 <keyword>while</keyword>
56                 <keyword>eval</keyword>
57                 <keyword>case</keyword>
58                 <keyword>in</keyword>
59                 <keyword>switch</keyword>
60                 <keyword>default</keyword>
61                 <keyword>exit</keyword>
62                 <keyword>error</keyword>
63                 <keyword>proc</keyword>
64                 <keyword>rename</keyword>
65                 <keyword>exec</keyword>
66                 <keyword>return</keyword>
67                 <keyword>uplevel</keyword>
68                 <keyword>upvar</keyword>
69                 <keyword>constructor</keyword>
70                 <keyword>destructor</keyword>
71                 <keyword>itcl_class</keyword>
72                 <keyword>loop</keyword>
73                 <keyword>for_array_keys</keyword>
74                 <keyword>for_recursive_glob</keyword>
75                 <keyword>for_file</keyword>
76                 <keyword>method</keyword>
77                 <keyword>body</keyword>
78                 <keyword>configbody</keyword>
79                 <keyword>catch</keyword>
80                 <keyword>namespace</keyword>
81                 <keyword>class</keyword>
82                 <keyword>array</keyword>
83                 <keyword>set</keyword>
84                 <keyword>unset</keyword>
85                 <keyword>package</keyword>
86                 <keyword>source</keyword>
87
88     <!-- Additional commands -->
89                 <keyword>subst</keyword>
90                 <keyword>list</keyword>
91                 <keyword>format</keyword>
92                 <keyword>lappend</keyword>
93                 <keyword>option</keyword>
94                 <keyword>expr</keyword>
95                 <keyword>puts</keyword>
96                 <keyword>winfo</keyword>
97                 <keyword>lindex</keyword>
98                 <keyword>string</keyword>
99
100
101     <!-- Runtime Library / structural -->
102                 <keyword>verified</keyword>
103                 <keyword>seteach</keyword>
104                 <keyword>fixme</keyword>
105                 <keyword>debug</keyword>
106                 <keyword>rtl::debug</keyword>
107                 <keyword>rtl::verified</keyword>
108                 <keyword>rtl::template</keyword>
109                 <keyword>rtl::seteach</keyword>
110
111     <!-- Runtime Library / Additional -->
112                 <keyword>mkProc</keyword>
113                 <keyword>getCreator</keyword>
114                 <keyword>properties</keyword>
115                 <keyword>lappendunique</keyword>
116                 <keyword>rtl::lappendunique</keyword>
117
118     <!-- geometry managers from Tk -->
119                 <keyword>place</keyword>
120                 <keyword>pack</keyword>
121                 <keyword>grid</keyword>
122
123
124     <!-- Additional Tk stuff -->
125                 <keyword>image</keyword>
126                 <keyword>font</keyword>
127                 <keyword>focus</keyword>
128                 <keyword>tk</keyword>
129                 <keyword>bind</keyword>
130                 <keyword>after</keyword>
131
132     <!-- Window classes from Tk, ... -->
133                 <keyword>toplevel</keyword>
134                 <keyword>frame</keyword>
135                 <keyword>entry</keyword>
136                 <keyword>listbox</keyword>
137                 <keyword>button</keyword>
138                 <keyword>radiobutton</keyword>
139                 <keyword>checkbutton</keyword>
140                 <keyword>canvas</keyword>
141                 <keyword>menu</keyword>
142                 <keyword>menubutton</keyword>
143                 <keyword>text</keyword>
144                 <keyword>label</keyword>
145                 <keyword>message</keyword>
146                 <!--
147                         The rest of Tk's windows is omitted: scrollbar, scale, panedwindow, labelframe, spinbox ...
148                 -->
149
150     <!-- ... from tkZinc, ... -->
151                 <keyword>zinc</keyword>
152   
153     <!-- ... from tkpath, ... -->
154                 <keyword>tkpath::gradient</keyword>
155
156     <!-- ... from Runtime Library, ... -->
157                 <keyword>rtl_combobox</keyword>
158                 <keyword>rtl_tree</keyword>
159                 <keyword>rtl_tabset</keyword>
160                 <keyword>rtl_mlistbox</keyword>
161                 <keyword>rtl_gridwin</keyword>
162                 <keyword>rtlysizer</keyword>
163                 <keyword>rtlxsizer</keyword>
164                 <!--
165                         The rest of RTL's windows is omitted: spinbox, decoratedframe, symbolbar, symbolbarcustomize, question ...
166                 -->
167
168     <!-- ... from GEI, ... -->
169                 <keyword>goolbar</keyword>
170                 <keyword>gstripes</keyword>
171                 <keyword>zoolbar</keyword>
172                 <keyword>gistbox</keyword>
173                 <keyword>gooleditor</keyword>
174                 <keyword>galette</keyword>
175         </highlighter>
176 </highlighters>
177         <!--
178                 Local Variables: mode: sgml coding: utf-8-unix sgml-indent-step: 2 sgml-indent-data: t sgml-set-face: t
179                 sgml-insert-missing-element-comment: nil End:
180         -->