tcl-hl.xml 5.1 KB

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