gtksourceview4 3.2.9-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (379) hide show
  1. checksums.yaml +7 -0
  2. data/COPYING.LIB +502 -0
  3. data/README.md +24 -0
  4. data/Rakefile +61 -0
  5. data/dependency-check/Rakefile +43 -0
  6. data/gtksourceview4.gemspec +45 -0
  7. data/lib/gtksourceview4/deprecated.rb +49 -0
  8. data/lib/gtksourceview4/loader.rb +49 -0
  9. data/lib/gtksourceview4/mark-attributes.rb +29 -0
  10. data/lib/gtksourceview4.rb +56 -0
  11. data/test/run-test.rb +62 -0
  12. data/test/test-mark-attributes.rb +26 -0
  13. data/test/test-source-gutter-renderer.rb +33 -0
  14. data/test/test-source-language-manager.rb +46 -0
  15. data/test/test-source-view.rb +55 -0
  16. data/vendor/local/bin/libgtksourceview-4-0.dll +0 -0
  17. data/vendor/local/include/gtksourceview-4/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +72 -0
  18. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksource-enumtypes.h +107 -0
  19. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksource.h +67 -0
  20. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceautocleanups.h +63 -0
  21. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcebuffer.h +279 -0
  22. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletion.h +156 -0
  23. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletioncontext.h +102 -0
  24. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletioninfo.h +77 -0
  25. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionitem.h +92 -0
  26. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionproposal.h +126 -0
  27. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionprovider.h +166 -0
  28. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceencoding.h +74 -0
  29. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefile.h +195 -0
  30. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefileloader.h +140 -0
  31. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefilesaver.h +168 -0
  32. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutter.h +93 -0
  33. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrenderer.h +272 -0
  34. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrendererpixbuf.h +91 -0
  35. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrenderertext.h +92 -0
  36. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceinit.h +40 -0
  37. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcelanguage.h +98 -0
  38. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcelanguagemanager.h +92 -0
  39. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemap.h +70 -0
  40. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemark.h +79 -0
  41. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemarkattributes.h +112 -0
  42. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceprintcompositor.h +223 -0
  43. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceregion.h +127 -0
  44. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcesearchcontext.h +161 -0
  45. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcesearchsettings.h +100 -0
  46. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcespacedrawer.h +144 -0
  47. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyle.h +54 -0
  48. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestylescheme.h +119 -0
  49. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooser.h +66 -0
  50. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooserbutton.h +64 -0
  51. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooserwidget.h +64 -0
  52. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschememanager.h +100 -0
  53. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcetag.h +54 -0
  54. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcetypes.h +73 -0
  55. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceundomanager.h +90 -0
  56. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceutils.h +41 -0
  57. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceversion.h +578 -0
  58. data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceview.h +266 -0
  59. data/vendor/local/lib/girepository-1.0/GtkSource-4.typelib +0 -0
  60. data/vendor/local/lib/libgtksourceview-4.dll.a +0 -0
  61. data/vendor/local/lib/libgtksourceview-4.la +41 -0
  62. data/vendor/local/lib/pkgconfig/gtksourceview-4.pc +12 -0
  63. data/vendor/local/share/gir-1.0/GtkSource-4.gir +12999 -0
  64. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceBuffer.html +2421 -0
  65. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletion.html +1087 -0
  66. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionContext.html +402 -0
  67. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionInfo.html +207 -0
  68. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionItem.html +497 -0
  69. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionProposal.html +668 -0
  70. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionProvider.html +837 -0
  71. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionWords.html +343 -0
  72. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceEncoding.html +391 -0
  73. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFile.html +769 -0
  74. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFileLoader.html +780 -0
  75. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFileSaver.html +965 -0
  76. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutter.html +438 -0
  77. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRenderer.html +1708 -0
  78. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRendererPixbuf.html +369 -0
  79. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRendererText.html +299 -0
  80. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceLanguage.html +579 -0
  81. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceLanguageManager.html +473 -0
  82. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMap.html +254 -0
  83. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMark.html +307 -0
  84. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMarkAttributes.html +788 -0
  85. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourcePrintCompositor.html +2121 -0
  86. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceRegion.html +870 -0
  87. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSearchContext.html +1216 -0
  88. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSearchSettings.html +603 -0
  89. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSpaceDrawer.html +671 -0
  90. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyle.html +433 -0
  91. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleScheme.html +396 -0
  92. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooser.html +214 -0
  93. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooserButton.html +127 -0
  94. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooserWidget.html +127 -0
  95. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeManager.html +460 -0
  96. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceTag.html +179 -0
  97. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceUndoManager.html +460 -0
  98. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceView.html +2369 -0
  99. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/annexes.html +55 -0
  100. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/annotation-glossary.html +74 -0
  101. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-0.html +62 -0
  102. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-10.html +86 -0
  103. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-12.html +34 -0
  104. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-2.html +270 -0
  105. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-4.html +34 -0
  106. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-8.html +46 -0
  107. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-0.html +42 -0
  108. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-10.html +170 -0
  109. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-12.html +38 -0
  110. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-14.html +298 -0
  111. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-16.html +106 -0
  112. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-18.html +114 -0
  113. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-20.html +130 -0
  114. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-22.html +106 -0
  115. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-24.html +126 -0
  116. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-4.html +34 -0
  117. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-4-0.html +65 -0
  118. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-deprecated.html +30 -0
  119. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-full.html +2586 -0
  120. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-reference.html +174 -0
  121. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/completion.html +52 -0
  122. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/file-loading-and-saving.html +43 -0
  123. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/general.html +32 -0
  124. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-GtkSourceUtils.html +151 -0
  125. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-GtkSourceView-Initialization-and-Finalization.html +100 -0
  126. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-Version-Information.html +511 -0
  127. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0.devhelp2 +819 -0
  128. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gutter.html +49 -0
  129. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/home.png +0 -0
  130. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/index.html +215 -0
  131. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/intro.html +56 -0
  132. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/lang-reference.html +946 -0
  133. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/lang-tutorial.html +652 -0
  134. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/left-insensitive.png +0 -0
  135. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/left.png +0 -0
  136. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/main-classes.html +37 -0
  137. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/misc.html +52 -0
  138. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/object-tree.html +98 -0
  139. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/porting-guide-3-to-4.html +152 -0
  140. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/porting-guide.html +33 -0
  141. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/printing.html +32 -0
  142. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/right-insensitive.png +0 -0
  143. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/right.png +0 -0
  144. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/search-and-replace.html +37 -0
  145. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/style-reference.html +305 -0
  146. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/style.css +483 -0
  147. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/styling.html +49 -0
  148. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/syntax-highlighting-reference.html +49 -0
  149. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/syntax-highlighting.html +37 -0
  150. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/up-insensitive.png +0 -0
  151. data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/up.png +0 -0
  152. data/vendor/local/share/gtksourceview-4/language-specs/R.lang +2198 -0
  153. data/vendor/local/share/gtksourceview-4/language-specs/abnf.lang +109 -0
  154. data/vendor/local/share/gtksourceview-4/language-specs/actionscript.lang +267 -0
  155. data/vendor/local/share/gtksourceview-4/language-specs/ada.lang +220 -0
  156. data/vendor/local/share/gtksourceview-4/language-specs/ansforth94.lang +728 -0
  157. data/vendor/local/share/gtksourceview-4/language-specs/asp.lang +1096 -0
  158. data/vendor/local/share/gtksourceview-4/language-specs/automake.lang +329 -0
  159. data/vendor/local/share/gtksourceview-4/language-specs/awk.lang +137 -0
  160. data/vendor/local/share/gtksourceview-4/language-specs/bennugd.lang +266 -0
  161. data/vendor/local/share/gtksourceview-4/language-specs/bibtex.lang +120 -0
  162. data/vendor/local/share/gtksourceview-4/language-specs/bluespec.lang +187 -0
  163. data/vendor/local/share/gtksourceview-4/language-specs/boo.lang +256 -0
  164. data/vendor/local/share/gtksourceview-4/language-specs/c.lang +343 -0
  165. data/vendor/local/share/gtksourceview-4/language-specs/cg.lang +231 -0
  166. data/vendor/local/share/gtksourceview-4/language-specs/changelog.lang +91 -0
  167. data/vendor/local/share/gtksourceview-4/language-specs/chdr.lang +50 -0
  168. data/vendor/local/share/gtksourceview-4/language-specs/cmake.lang +817 -0
  169. data/vendor/local/share/gtksourceview-4/language-specs/cobol.lang +646 -0
  170. data/vendor/local/share/gtksourceview-4/language-specs/cpp.lang +119 -0
  171. data/vendor/local/share/gtksourceview-4/language-specs/cpphdr.lang +41 -0
  172. data/vendor/local/share/gtksourceview-4/language-specs/csharp.lang +285 -0
  173. data/vendor/local/share/gtksourceview-4/language-specs/css.lang +2411 -0
  174. data/vendor/local/share/gtksourceview-4/language-specs/csv.lang +73 -0
  175. data/vendor/local/share/gtksourceview-4/language-specs/cuda.lang +281 -0
  176. data/vendor/local/share/gtksourceview-4/language-specs/d.lang +317 -0
  177. data/vendor/local/share/gtksourceview-4/language-specs/def.lang +261 -0
  178. data/vendor/local/share/gtksourceview-4/language-specs/desktop.lang +297 -0
  179. data/vendor/local/share/gtksourceview-4/language-specs/diff.lang +84 -0
  180. data/vendor/local/share/gtksourceview-4/language-specs/docbook.lang +475 -0
  181. data/vendor/local/share/gtksourceview-4/language-specs/dosbatch.lang +166 -0
  182. data/vendor/local/share/gtksourceview-4/language-specs/dot.lang +139 -0
  183. data/vendor/local/share/gtksourceview-4/language-specs/dpatch.lang +47 -0
  184. data/vendor/local/share/gtksourceview-4/language-specs/dtd.lang +139 -0
  185. data/vendor/local/share/gtksourceview-4/language-specs/dtl.lang +297 -0
  186. data/vendor/local/share/gtksourceview-4/language-specs/eiffel.lang +238 -0
  187. data/vendor/local/share/gtksourceview-4/language-specs/erlang.lang +262 -0
  188. data/vendor/local/share/gtksourceview-4/language-specs/fcl.lang +113 -0
  189. data/vendor/local/share/gtksourceview-4/language-specs/forth.lang +234 -0
  190. data/vendor/local/share/gtksourceview-4/language-specs/fortran.lang +710 -0
  191. data/vendor/local/share/gtksourceview-4/language-specs/fsharp.lang +324 -0
  192. data/vendor/local/share/gtksourceview-4/language-specs/gap.lang +84 -0
  193. data/vendor/local/share/gtksourceview-4/language-specs/gdb-log.lang +151 -0
  194. data/vendor/local/share/gtksourceview-4/language-specs/genie.lang +237 -0
  195. data/vendor/local/share/gtksourceview-4/language-specs/glsl.lang +482 -0
  196. data/vendor/local/share/gtksourceview-4/language-specs/go.lang +274 -0
  197. data/vendor/local/share/gtksourceview-4/language-specs/groovy.lang +330 -0
  198. data/vendor/local/share/gtksourceview-4/language-specs/gtk-doc.lang +90 -0
  199. data/vendor/local/share/gtksourceview-4/language-specs/gtkrc.lang +115 -0
  200. data/vendor/local/share/gtksourceview-4/language-specs/haddock.lang +161 -0
  201. data/vendor/local/share/gtksourceview-4/language-specs/haskell-literate.lang +58 -0
  202. data/vendor/local/share/gtksourceview-4/language-specs/haskell.lang +227 -0
  203. data/vendor/local/share/gtksourceview-4/language-specs/haxe.lang +237 -0
  204. data/vendor/local/share/gtksourceview-4/language-specs/html.lang +286 -0
  205. data/vendor/local/share/gtksourceview-4/language-specs/idl-exelis.lang +619 -0
  206. data/vendor/local/share/gtksourceview-4/language-specs/idl.lang +153 -0
  207. data/vendor/local/share/gtksourceview-4/language-specs/imagej.lang +783 -0
  208. data/vendor/local/share/gtksourceview-4/language-specs/ini.lang +94 -0
  209. data/vendor/local/share/gtksourceview-4/language-specs/j.lang +239 -0
  210. data/vendor/local/share/gtksourceview-4/language-specs/jade.lang +248 -0
  211. data/vendor/local/share/gtksourceview-4/language-specs/java.lang +188 -0
  212. data/vendor/local/share/gtksourceview-4/language-specs/javascript.lang +354 -0
  213. data/vendor/local/share/gtksourceview-4/language-specs/json.lang +124 -0
  214. data/vendor/local/share/gtksourceview-4/language-specs/julia.lang +376 -0
  215. data/vendor/local/share/gtksourceview-4/language-specs/kotlin.lang +389 -0
  216. data/vendor/local/share/gtksourceview-4/language-specs/language.dtd +72 -0
  217. data/vendor/local/share/gtksourceview-4/language-specs/language.rng +372 -0
  218. data/vendor/local/share/gtksourceview-4/language-specs/language2.rng +481 -0
  219. data/vendor/local/share/gtksourceview-4/language-specs/latex.lang +636 -0
  220. data/vendor/local/share/gtksourceview-4/language-specs/less.lang +793 -0
  221. data/vendor/local/share/gtksourceview-4/language-specs/lex.lang +208 -0
  222. data/vendor/local/share/gtksourceview-4/language-specs/libtool.lang +55 -0
  223. data/vendor/local/share/gtksourceview-4/language-specs/llvm.lang +314 -0
  224. data/vendor/local/share/gtksourceview-4/language-specs/logcat.lang +107 -0
  225. data/vendor/local/share/gtksourceview-4/language-specs/lua.lang +301 -0
  226. data/vendor/local/share/gtksourceview-4/language-specs/m4.lang +1374 -0
  227. data/vendor/local/share/gtksourceview-4/language-specs/makefile.lang +190 -0
  228. data/vendor/local/share/gtksourceview-4/language-specs/mallard.lang +123 -0
  229. data/vendor/local/share/gtksourceview-4/language-specs/markdown.lang +401 -0
  230. data/vendor/local/share/gtksourceview-4/language-specs/matlab.lang +148 -0
  231. data/vendor/local/share/gtksourceview-4/language-specs/maxima.lang +1864 -0
  232. data/vendor/local/share/gtksourceview-4/language-specs/mediawiki.lang +326 -0
  233. data/vendor/local/share/gtksourceview-4/language-specs/meson.lang +132 -0
  234. data/vendor/local/share/gtksourceview-4/language-specs/modelica.lang +261 -0
  235. data/vendor/local/share/gtksourceview-4/language-specs/mxml.lang +64 -0
  236. data/vendor/local/share/gtksourceview-4/language-specs/nemerle.lang +262 -0
  237. data/vendor/local/share/gtksourceview-4/language-specs/netrexx.lang +318 -0
  238. data/vendor/local/share/gtksourceview-4/language-specs/nsis.lang +87 -0
  239. data/vendor/local/share/gtksourceview-4/language-specs/objc.lang +119 -0
  240. data/vendor/local/share/gtksourceview-4/language-specs/objj.lang +127 -0
  241. data/vendor/local/share/gtksourceview-4/language-specs/ocaml.lang +301 -0
  242. data/vendor/local/share/gtksourceview-4/language-specs/ocl.lang +138 -0
  243. data/vendor/local/share/gtksourceview-4/language-specs/octave.lang +1757 -0
  244. data/vendor/local/share/gtksourceview-4/language-specs/ooc.lang +264 -0
  245. data/vendor/local/share/gtksourceview-4/language-specs/opal.lang +342 -0
  246. data/vendor/local/share/gtksourceview-4/language-specs/opencl.lang +599 -0
  247. data/vendor/local/share/gtksourceview-4/language-specs/pascal.lang +267 -0
  248. data/vendor/local/share/gtksourceview-4/language-specs/perl.lang +1044 -0
  249. data/vendor/local/share/gtksourceview-4/language-specs/php.lang +362 -0
  250. data/vendor/local/share/gtksourceview-4/language-specs/pig.lang +292 -0
  251. data/vendor/local/share/gtksourceview-4/language-specs/pkgconfig.lang +61 -0
  252. data/vendor/local/share/gtksourceview-4/language-specs/po.lang +93 -0
  253. data/vendor/local/share/gtksourceview-4/language-specs/prolog.lang +248 -0
  254. data/vendor/local/share/gtksourceview-4/language-specs/protobuf.lang +134 -0
  255. data/vendor/local/share/gtksourceview-4/language-specs/puppet.lang +696 -0
  256. data/vendor/local/share/gtksourceview-4/language-specs/python.lang +475 -0
  257. data/vendor/local/share/gtksourceview-4/language-specs/python3.lang +198 -0
  258. data/vendor/local/share/gtksourceview-4/language-specs/rpmspec.lang +215 -0
  259. data/vendor/local/share/gtksourceview-4/language-specs/rst.lang +141 -0
  260. data/vendor/local/share/gtksourceview-4/language-specs/ruby.lang +748 -0
  261. data/vendor/local/share/gtksourceview-4/language-specs/rust.lang +334 -0
  262. data/vendor/local/share/gtksourceview-4/language-specs/scala.lang +383 -0
  263. data/vendor/local/share/gtksourceview-4/language-specs/scheme.lang +301 -0
  264. data/vendor/local/share/gtksourceview-4/language-specs/scilab.lang +208 -0
  265. data/vendor/local/share/gtksourceview-4/language-specs/scss.lang +878 -0
  266. data/vendor/local/share/gtksourceview-4/language-specs/sh.lang +516 -0
  267. data/vendor/local/share/gtksourceview-4/language-specs/sml.lang +200 -0
  268. data/vendor/local/share/gtksourceview-4/language-specs/sparql.lang +451 -0
  269. data/vendor/local/share/gtksourceview-4/language-specs/sql.lang +617 -0
  270. data/vendor/local/share/gtksourceview-4/language-specs/sweave.lang +66 -0
  271. data/vendor/local/share/gtksourceview-4/language-specs/swift.lang +440 -0
  272. data/vendor/local/share/gtksourceview-4/language-specs/systemverilog.lang +262 -0
  273. data/vendor/local/share/gtksourceview-4/language-specs/t2t.lang +149 -0
  274. data/vendor/local/share/gtksourceview-4/language-specs/tcl.lang +145 -0
  275. data/vendor/local/share/gtksourceview-4/language-specs/tera.lang +142 -0
  276. data/vendor/local/share/gtksourceview-4/language-specs/texinfo.lang +447 -0
  277. data/vendor/local/share/gtksourceview-4/language-specs/thrift.lang +266 -0
  278. data/vendor/local/share/gtksourceview-4/language-specs/toml.lang +282 -0
  279. data/vendor/local/share/gtksourceview-4/language-specs/vala.lang +411 -0
  280. data/vendor/local/share/gtksourceview-4/language-specs/vbnet.lang +247 -0
  281. data/vendor/local/share/gtksourceview-4/language-specs/verilog.lang +475 -0
  282. data/vendor/local/share/gtksourceview-4/language-specs/vhdl.lang +247 -0
  283. data/vendor/local/share/gtksourceview-4/language-specs/xml.lang +219 -0
  284. data/vendor/local/share/gtksourceview-4/language-specs/xslt.lang +120 -0
  285. data/vendor/local/share/gtksourceview-4/language-specs/yacc.lang +176 -0
  286. data/vendor/local/share/gtksourceview-4/language-specs/yaml.lang +213 -0
  287. data/vendor/local/share/gtksourceview-4/styles/classic.xml +122 -0
  288. data/vendor/local/share/gtksourceview-4/styles/cobalt.xml +150 -0
  289. data/vendor/local/share/gtksourceview-4/styles/kate.xml +171 -0
  290. data/vendor/local/share/gtksourceview-4/styles/oblivion.xml +133 -0
  291. data/vendor/local/share/gtksourceview-4/styles/solarized-dark.xml +103 -0
  292. data/vendor/local/share/gtksourceview-4/styles/solarized-light.xml +102 -0
  293. data/vendor/local/share/gtksourceview-4/styles/styles.rng +139 -0
  294. data/vendor/local/share/gtksourceview-4/styles/tango.xml +130 -0
  295. data/vendor/local/share/license/gtksourceview/AUTHORS +15 -0
  296. data/vendor/local/share/license/gtksourceview/COPYING +504 -0
  297. data/vendor/local/share/locale/ar/LC_MESSAGES/gtksourceview-4.mo +0 -0
  298. data/vendor/local/share/locale/as/LC_MESSAGES/gtksourceview-4.mo +0 -0
  299. data/vendor/local/share/locale/ast/LC_MESSAGES/gtksourceview-4.mo +0 -0
  300. data/vendor/local/share/locale/az/LC_MESSAGES/gtksourceview-4.mo +0 -0
  301. data/vendor/local/share/locale/be/LC_MESSAGES/gtksourceview-4.mo +0 -0
  302. data/vendor/local/share/locale/bg/LC_MESSAGES/gtksourceview-4.mo +0 -0
  303. data/vendor/local/share/locale/bn/LC_MESSAGES/gtksourceview-4.mo +0 -0
  304. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gtksourceview-4.mo +0 -0
  305. data/vendor/local/share/locale/bs/LC_MESSAGES/gtksourceview-4.mo +0 -0
  306. data/vendor/local/share/locale/ca/LC_MESSAGES/gtksourceview-4.mo +0 -0
  307. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtksourceview-4.mo +0 -0
  308. data/vendor/local/share/locale/cs/LC_MESSAGES/gtksourceview-4.mo +0 -0
  309. data/vendor/local/share/locale/cy/LC_MESSAGES/gtksourceview-4.mo +0 -0
  310. data/vendor/local/share/locale/da/LC_MESSAGES/gtksourceview-4.mo +0 -0
  311. data/vendor/local/share/locale/de/LC_MESSAGES/gtksourceview-4.mo +0 -0
  312. data/vendor/local/share/locale/dz/LC_MESSAGES/gtksourceview-4.mo +0 -0
  313. data/vendor/local/share/locale/el/LC_MESSAGES/gtksourceview-4.mo +0 -0
  314. data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gtksourceview-4.mo +0 -0
  315. data/vendor/local/share/locale/en_CA/LC_MESSAGES/gtksourceview-4.mo +0 -0
  316. data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtksourceview-4.mo +0 -0
  317. data/vendor/local/share/locale/eo/LC_MESSAGES/gtksourceview-4.mo +0 -0
  318. data/vendor/local/share/locale/es/LC_MESSAGES/gtksourceview-4.mo +0 -0
  319. data/vendor/local/share/locale/et/LC_MESSAGES/gtksourceview-4.mo +0 -0
  320. data/vendor/local/share/locale/eu/LC_MESSAGES/gtksourceview-4.mo +0 -0
  321. data/vendor/local/share/locale/fa/LC_MESSAGES/gtksourceview-4.mo +0 -0
  322. data/vendor/local/share/locale/fi/LC_MESSAGES/gtksourceview-4.mo +0 -0
  323. data/vendor/local/share/locale/fr/LC_MESSAGES/gtksourceview-4.mo +0 -0
  324. data/vendor/local/share/locale/fur/LC_MESSAGES/gtksourceview-4.mo +0 -0
  325. data/vendor/local/share/locale/ga/LC_MESSAGES/gtksourceview-4.mo +0 -0
  326. data/vendor/local/share/locale/gl/LC_MESSAGES/gtksourceview-4.mo +0 -0
  327. data/vendor/local/share/locale/gu/LC_MESSAGES/gtksourceview-4.mo +0 -0
  328. data/vendor/local/share/locale/he/LC_MESSAGES/gtksourceview-4.mo +0 -0
  329. data/vendor/local/share/locale/hi/LC_MESSAGES/gtksourceview-4.mo +0 -0
  330. data/vendor/local/share/locale/hr/LC_MESSAGES/gtksourceview-4.mo +0 -0
  331. data/vendor/local/share/locale/hu/LC_MESSAGES/gtksourceview-4.mo +0 -0
  332. data/vendor/local/share/locale/id/LC_MESSAGES/gtksourceview-4.mo +0 -0
  333. data/vendor/local/share/locale/it/LC_MESSAGES/gtksourceview-4.mo +0 -0
  334. data/vendor/local/share/locale/ja/LC_MESSAGES/gtksourceview-4.mo +0 -0
  335. data/vendor/local/share/locale/kk/LC_MESSAGES/gtksourceview-4.mo +0 -0
  336. data/vendor/local/share/locale/kn/LC_MESSAGES/gtksourceview-4.mo +0 -0
  337. data/vendor/local/share/locale/ko/LC_MESSAGES/gtksourceview-4.mo +0 -0
  338. data/vendor/local/share/locale/lt/LC_MESSAGES/gtksourceview-4.mo +0 -0
  339. data/vendor/local/share/locale/lv/LC_MESSAGES/gtksourceview-4.mo +0 -0
  340. data/vendor/local/share/locale/mai/LC_MESSAGES/gtksourceview-4.mo +0 -0
  341. data/vendor/local/share/locale/mg/LC_MESSAGES/gtksourceview-4.mo +0 -0
  342. data/vendor/local/share/locale/mk/LC_MESSAGES/gtksourceview-4.mo +0 -0
  343. data/vendor/local/share/locale/ml/LC_MESSAGES/gtksourceview-4.mo +0 -0
  344. data/vendor/local/share/locale/mn/LC_MESSAGES/gtksourceview-4.mo +0 -0
  345. data/vendor/local/share/locale/mr/LC_MESSAGES/gtksourceview-4.mo +0 -0
  346. data/vendor/local/share/locale/ms/LC_MESSAGES/gtksourceview-4.mo +0 -0
  347. data/vendor/local/share/locale/nb/LC_MESSAGES/gtksourceview-4.mo +0 -0
  348. data/vendor/local/share/locale/ne/LC_MESSAGES/gtksourceview-4.mo +0 -0
  349. data/vendor/local/share/locale/nl/LC_MESSAGES/gtksourceview-4.mo +0 -0
  350. data/vendor/local/share/locale/nn/LC_MESSAGES/gtksourceview-4.mo +0 -0
  351. data/vendor/local/share/locale/oc/LC_MESSAGES/gtksourceview-4.mo +0 -0
  352. data/vendor/local/share/locale/or/LC_MESSAGES/gtksourceview-4.mo +0 -0
  353. data/vendor/local/share/locale/pa/LC_MESSAGES/gtksourceview-4.mo +0 -0
  354. data/vendor/local/share/locale/pl/LC_MESSAGES/gtksourceview-4.mo +0 -0
  355. data/vendor/local/share/locale/pt/LC_MESSAGES/gtksourceview-4.mo +0 -0
  356. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtksourceview-4.mo +0 -0
  357. data/vendor/local/share/locale/ro/LC_MESSAGES/gtksourceview-4.mo +0 -0
  358. data/vendor/local/share/locale/ru/LC_MESSAGES/gtksourceview-4.mo +0 -0
  359. data/vendor/local/share/locale/rw/LC_MESSAGES/gtksourceview-4.mo +0 -0
  360. data/vendor/local/share/locale/si/LC_MESSAGES/gtksourceview-4.mo +0 -0
  361. data/vendor/local/share/locale/sk/LC_MESSAGES/gtksourceview-4.mo +0 -0
  362. data/vendor/local/share/locale/sl/LC_MESSAGES/gtksourceview-4.mo +0 -0
  363. data/vendor/local/share/locale/sq/LC_MESSAGES/gtksourceview-4.mo +0 -0
  364. data/vendor/local/share/locale/sr/LC_MESSAGES/gtksourceview-4.mo +0 -0
  365. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtksourceview-4.mo +0 -0
  366. data/vendor/local/share/locale/sv/LC_MESSAGES/gtksourceview-4.mo +0 -0
  367. data/vendor/local/share/locale/ta/LC_MESSAGES/gtksourceview-4.mo +0 -0
  368. data/vendor/local/share/locale/te/LC_MESSAGES/gtksourceview-4.mo +0 -0
  369. data/vendor/local/share/locale/tg/LC_MESSAGES/gtksourceview-4.mo +0 -0
  370. data/vendor/local/share/locale/th/LC_MESSAGES/gtksourceview-4.mo +0 -0
  371. data/vendor/local/share/locale/tr/LC_MESSAGES/gtksourceview-4.mo +0 -0
  372. data/vendor/local/share/locale/ug/LC_MESSAGES/gtksourceview-4.mo +0 -0
  373. data/vendor/local/share/locale/uk/LC_MESSAGES/gtksourceview-4.mo +0 -0
  374. data/vendor/local/share/locale/vi/LC_MESSAGES/gtksourceview-4.mo +0 -0
  375. data/vendor/local/share/locale/xh/LC_MESSAGES/gtksourceview-4.mo +0 -0
  376. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtksourceview-4.mo +0 -0
  377. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtksourceview-4.mo +0 -0
  378. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtksourceview-4.mo +0 -0
  379. metadata +437 -0
@@ -0,0 +1,946 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Language Definition v2.0 Reference: GtkSourceView 4 Reference Manual</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7
+ <link rel="home" href="index.html" title="GtkSourceView 4 Reference Manual">
8
+ <link rel="up" href="syntax-highlighting-reference.html" title="Part III. Syntax highlighting reference">
9
+ <link rel="prev" href="lang-tutorial.html" title="Language Definition v2.0 Tutorial">
10
+ <link rel="next" href="style-reference.html" title="Style Scheme Definition Reference">
11
+ <meta name="generator" content="GTK-Doc V1.28.1 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
14
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><a accesskey="u" href="syntax-highlighting-reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="p" href="lang-tutorial.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="style-reference.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
+ </tr></table>
22
+ <div class="refentry">
23
+ <a name="lang-reference"></a><div class="titlepage"></div>
24
+ <div class="refnamediv"><table width="100%"><tr>
25
+ <td valign="top">
26
+ <h2><span class="refentrytitle">Language Definition v2.0 Reference</span></h2>
27
+ <p>Language Definition v2.0 Reference —
28
+ Reference to the GtkSourceView language definition file format
29
+ </p>
30
+ </td>
31
+ <td class="gallery_image" valign="top" align="right"></td>
32
+ </tr></table></div>
33
+ <div class="refsect1">
34
+ <a name="id-1.4.3.3"></a><h2>Overview</h2>
35
+ <div class="note"><p>
36
+ The version 2 here refers to the language definition file format,
37
+ not to the version of GtkSourceView. This reference is suitable
38
+ for GtkSourceView 2, 3 and 4.
39
+ </p></div>
40
+ <p>
41
+ This is an overview of the Language Definition XML format, describing the
42
+ meaning and usage of every element and attribute. The formal definition is
43
+ stored in the RelaxNG schema file <code class="filename">language2.rng</code> which
44
+ should be installed on your system in the directory
45
+ <code class="filename">${PREFIX}/share/gtksourceview-4/</code> (where
46
+ <code class="filename">${PREFIX}</code> can be <code class="filename">/usr/</code> or
47
+ <code class="filename">/usr/local/</code> if you have installed from source.
48
+ </p>
49
+ <p>
50
+ The preinstalled language files are located in
51
+ <code class="filename">${PREFIX}/share/gtksourceview-4/language-specs/</code>. Custom
52
+ user languages are usually placed in
53
+ <code class="filename">~/.local/share/gtksourceview-4/language-specs/</code>. Note:
54
+ replace 4 with 2.0 or 3.0 in the path for GtkSourceView version
55
+ 2 or version 3.
56
+ </p>
57
+ </div>
58
+ <div class="refsect1">
59
+ <a name="id-1.4.3.4"></a><h2>Some advices</h2>
60
+ <p>
61
+ The easiest way to start a new language definition is to copy a preinstalled
62
+ language definition from a language that has similar constructs as the one you
63
+ want to write a specification for. You can copy and rename a file from the
64
+ systems directory to the local user one (create the directory if it doesn't
65
+ exist yet) and edit the file accordingly.
66
+ </p>
67
+ <p>
68
+ The important thing you need to change are the <code class="code">id</code> and
69
+ <code class="code">name</code> of the language and the metadata properties
70
+ <code class="code">mimetypes</code> and <code class="code">globs</code> in the language spec. These
71
+ should resemble your new language. It might be that your files do not have an
72
+ appropriate mimetype associated yet. You can either in that case leave it
73
+ empty, or add a new mimetype (see below).
74
+ </p>
75
+ <p>
76
+ If for some reason your language spec doesn't show up in an application like
77
+ gedit, it might be a good idea to start the application from a terminal window
78
+ and see if any errors/warnings appear for your language file. This usually
79
+ gives good clues what's wrong with the specification. Note that you need to
80
+ restart the application to take into account changes in a language definition
81
+ file.
82
+ </p>
83
+ </div>
84
+ <div class="refsect1">
85
+ <a name="id-1.4.3.5"></a><h2>Conventions</h2>
86
+ <p>
87
+ It is better to follow the following conventions, especially if you want to
88
+ contribute upstream, and get your language definition file included in
89
+ GtkSourceView.
90
+ </p>
91
+ <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
92
+ <li class="listitem"><p>
93
+ Indentation: 2 spaces.
94
+ </p></li>
95
+ <li class="listitem"><p>
96
+ Have the main context at the bottom.
97
+ </p></li>
98
+ <li class="listitem"><p>
99
+ Use references to def.lang.
100
+ </p></li>
101
+ <li class="listitem"><p>
102
+ Add an example in tests/syntax-highlighting/.
103
+ </p></li>
104
+ <li class="listitem"><p>
105
+ LGPL v2.1+ license (copy/paste the license header from c.lang, for
106
+ example).
107
+ </p></li>
108
+ <li class="listitem"><p>
109
+ Add the e-mail address of the language definition file author(s).
110
+ </p></li>
111
+ <li class="listitem"><p>
112
+ Refer to the HACKING file for submitting your language definition
113
+ file upstream. If the file is not included upstream, you can also
114
+ add the language definition file to the GtkSourceView wiki, so
115
+ users can easily find it.
116
+ </p></li>
117
+ </ul></div>
118
+ </div>
119
+ <div class="refsect1">
120
+ <a name="id-1.4.3.6"></a><h2>Tag <code class="code">&lt;language&gt;</code>
121
+ </h2>
122
+ <p>
123
+ The root element for Language Definition files.
124
+ </p>
125
+ <p>
126
+ Contained elements:
127
+ <span class="simplelist"><code class="code">&lt;metadata&gt;</code> (optional), <code class="code">&lt;styles&gt;</code> (optional), <code class="code">&lt;default-regex-options&gt;</code> (optional), <code class="code">&lt;keyword-char-class&gt;</code> (optional), <code class="code">&lt;definitions&gt;</code> (mandatory)</span>.
128
+ </p>
129
+ <div class="variablelist">
130
+ <p class="title"><b>Attributes:</b></p>
131
+ <table border="0" class="variablelist">
132
+ <colgroup>
133
+ <col align="left" valign="top">
134
+ <col>
135
+ </colgroup>
136
+ <tbody>
137
+ <tr>
138
+ <td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
139
+ <td><p>
140
+ Identifier for the description. This is used for
141
+ external references and must be unique among language descriptions. It can
142
+ contain a string of letters, digits, hyphens ("<code class="code">-</code>") and
143
+ underscores ("<code class="code">_</code>").
144
+ </p></td>
145
+ </tr>
146
+ <tr>
147
+ <td><p><span class="term"><code class="code">name</code> or <code class="code">_name</code> (mandatory)</span></p></td>
148
+ <td>
149
+ <p>
150
+ The name of the language presented to the user. With <code class="code">_name</code>, the
151
+ string is marked for translation (see the gettext documentation).
152
+ </p>
153
+ <p>
154
+ The name should be marked for translation only if: (1) it contains a common
155
+ English word, for example "C++ header" should be translated, but not "C++"
156
+ or "XML". Or (2) if the name contains several words, because in some
157
+ languages the word order should be different, for example "LLVM IR" or "RPM
158
+ spec" should also be marked for translation.
159
+ </p>
160
+ </td>
161
+ </tr>
162
+ <tr>
163
+ <td><p><span class="term"><code class="code">version</code> (mandatory)</span></p></td>
164
+ <td><p>
165
+ The version of the XML format (currently "2.0").
166
+ </p></td>
167
+ </tr>
168
+ <tr>
169
+ <td><p><span class="term"><code class="code">section</code> or <code class="code">_section</code> (optional)</span></p></td>
170
+ <td><p>
171
+ The category in which the language has to be grouped when presented to the user.
172
+ With <code class="code">_section</code> the string is marked for translation. Currently used
173
+ categories in GtkSourceView are "Source", "Script", "Markup", "Scientific" and
174
+ "Other", but it is possible to use arbitrary categories (while usually
175
+ discouraged). The convention in GtkSourceView is to use <code class="code">_section</code>.
176
+ </p></td>
177
+ </tr>
178
+ <tr>
179
+ <td><p><span class="term"><code class="code">hidden</code> (optional)</span></p></td>
180
+ <td><p>
181
+ It's a hint that the language should be "hidden" from user. For instance,
182
+ def.lang has this flag, and a text editor should not present "default" as
183
+ a syntax highlighting choice.
184
+ </p></td>
185
+ </tr>
186
+ </tbody>
187
+ </table>
188
+ </div>
189
+ </div>
190
+ <div class="refsect1">
191
+ <a name="id-1.4.3.7"></a><h2>Tag <code class="code">&lt;metadata&gt;</code>
192
+ </h2>
193
+ <p>
194
+ Contains optional metadata about the language definition.
195
+ </p>
196
+ <p>
197
+ Recognized elements are (all optional):
198
+ </p>
199
+ <dt><span class="term"><code class="code">mimetypes</code></span></dt>
200
+ <dd><p>
201
+ The semicolon-separated list of mimetypes associated to the language. See the
202
+ <a class="ulink" href="http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/" target="_top">shared-mime-info</a>
203
+ freedesktop.org specification. A language definition file shipped by
204
+ GtkSourceView needs to have a mimetype defined in the shared-mime-info
205
+ database. If the language definition file is not shipped by GtkSourceView, you
206
+ can also create the mimetype locally, usually in
207
+ <code class="filename">~/.local/share/mime/packages/</code>.
208
+ </p></dd>
209
+ <dt><span class="term"><code class="code">globs</code></span></dt>
210
+ <dd><p>
211
+ The semicolon-separated list of globs associated to the language.
212
+ </p></dd>
213
+ <dt><span class="term"><code class="code">line-comment-start</code></span></dt>
214
+ <dd><p>
215
+ String used to create single-line comment in files of this type, e.g.
216
+ "#" in shell scripts.
217
+ It may be used in an editor to implement Comment/Uncomment functionality.
218
+ </p></dd>
219
+ <dt><span class="term"><code class="code">block-comment-start</code></span></dt>
220
+ <dd><p>
221
+ String used to start block comment in files of this type, e.g. "/*" in C
222
+ files.
223
+ </p></dd>
224
+ <dt><span class="term"><code class="code">block-comment-end</code></span></dt>
225
+ <dd><p>
226
+ String used to end block comment in files of this type, e.g. "*/" in C
227
+ files.
228
+ </p></dd>
229
+ </div>
230
+ <div class="refsect1">
231
+ <a name="id-1.4.3.8"></a><h2>Tag <code class="code">&lt;styles&gt;</code>
232
+ </h2>
233
+ <p>
234
+ Contains the definitions of every style used in the current language and
235
+ their association with predefined styles in GtkSourceView.
236
+ </p>
237
+ <p>
238
+ Contained elements:
239
+ <span class="simplelist"><code class="code">&lt;style&gt;</code> (one or more)</span>.
240
+ </p>
241
+ </div>
242
+ <div class="refsect1">
243
+ <a name="id-1.4.3.9"></a><h2>Tag <code class="code">&lt;style&gt;</code>
244
+ </h2>
245
+ <p>
246
+ Defines a style, associating its id with a user visible translatable
247
+ name and a default style.
248
+ </p>
249
+ <p>
250
+ Contained elements: none.
251
+ </p>
252
+ <div class="variablelist">
253
+ <p class="title"><b>Attributes:</b></p>
254
+ <table border="0" class="variablelist">
255
+ <colgroup>
256
+ <col align="left" valign="top">
257
+ <col>
258
+ </colgroup>
259
+ <tbody>
260
+ <tr>
261
+ <td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
262
+ <td><p>
263
+ Identifier for the style. This is used in the current language
264
+ to refer to this style and must be unique for the current document.
265
+ It can contain a string of letters, digits,
266
+ hyphens ("<code class="code">-</code>") and underscores ("<code class="code">_</code>").
267
+ </p></td>
268
+ </tr>
269
+ <tr>
270
+ <td><p><span class="term"><code class="code">name</code> or <code class="code">_name</code> (mandatory)</span></p></td>
271
+ <td>
272
+ <p>
273
+ The user visible name for the style. With <code class="code">_name</code> the string is
274
+ marked for translation.
275
+ </p>
276
+ <p>
277
+ The convention in GtkSourceView is to <span class="emphasis"><em>never</em></span> mark those
278
+ strings for translation because they are extremely rarely used in the UI of
279
+ an application (for example it could be used by a GUI tool to edit or create
280
+ style schemes, but it is not really useful beyond that), and because those
281
+ strings would be hard to translate (as a result, if those strings are
282
+ translated, in practice they would often be translated in a way that the
283
+ user doesn't understand what it means; for example for the C language,
284
+ "include" or "define" should not be translated, those are keywords of the
285
+ programming language).
286
+ </p>
287
+ </td>
288
+ </tr>
289
+ <tr>
290
+ <td><p><span class="term"><code class="code">map-to</code> (optional)</span></p></td>
291
+ <td><p>
292
+ Used to map the style with a default style, to use colors and
293
+ font properties defined for those default styles.
294
+ The id of the default style has to be preceded with the id of the
295
+ language where it is defined, separated with a semicolon ":".
296
+ When omitted the style is not considered derived from any style and will
297
+ not be highlighted until the user specifies a color scheme for this
298
+ style.
299
+ </p></td>
300
+ </tr>
301
+ </tbody>
302
+ </table>
303
+ </div>
304
+ </div>
305
+ <div class="refsect1">
306
+ <a name="id-1.4.3.10"></a><h2>Tag <code class="code">&lt;keyword-char-class&gt;</code>
307
+ </h2>
308
+ <p>
309
+ Contains a regex character class used to redefine the customizable
310
+ word boundary delimiters "\%[" and "\%]". This class is the set of character
311
+ that can be commonly found in a keyword.
312
+ If the element is omitted the two delimiters default to "\b".
313
+ </p>
314
+ <p>
315
+ Contained elements: none.
316
+ </p>
317
+ </div>
318
+ <div class="refsect1">
319
+ <a name="id-1.4.3.11"></a><h2>Tag <code class="code">&lt;default-regex-options&gt;</code>
320
+ </h2>
321
+ <p>
322
+ Used to set global options for how regular expressions are processed.
323
+ </p>
324
+ <p>
325
+ Contained elements: none.
326
+ </p>
327
+ <div class="variablelist">
328
+ <p class="title"><b>Attributes</b></p>
329
+ <table border="0" class="variablelist">
330
+ <colgroup>
331
+ <col align="left" valign="top">
332
+ <col>
333
+ </colgroup>
334
+ <tbody>
335
+ <tr>
336
+ <td><p><span class="term"><code class="code">case-sensitive</code> (optional)</span></p></td>
337
+ <td><p>Set to <code class="code">false</code> to make regular expressions
338
+ ignore case.
339
+ Defaults to <code class="code">true</code>.
340
+ </p></td>
341
+ </tr>
342
+ <tr>
343
+ <td><p><span class="term"><code class="code">extended</code> (optional)</span></p></td>
344
+ <td><p>Setting this to <code class="code">true</code> makes the regular
345
+ expression engine ignore spaces and comments. These comments start with
346
+ "<code class="code">#</code>" and continue to the end of the line.
347
+ Defaults to <code class="code">false</code>.
348
+ </p></td>
349
+ </tr>
350
+ <tr>
351
+ <td><p><span class="term"><code class="code">dupnames</code> (optional)</span></p></td>
352
+ <td><p>Setting this to true allows one to repeat an identifier
353
+ for capturing parentheses. This is useful for some patterns that you
354
+ know only one instance of a named subpattern can ever be matched.
355
+ Defaults to <code class="code">false</code>.
356
+ </p></td>
357
+ </tr>
358
+ </tbody>
359
+ </table>
360
+ </div>
361
+ </div>
362
+ <div class="refsect1">
363
+ <a name="id-1.4.3.12"></a><h2>Tag <code class="code">&lt;definitions&gt;</code>
364
+ </h2>
365
+ <p>
366
+ The element containing the real description of the syntax to be
367
+ highlighted. It contains one or more <code class="code">&lt;context&gt;</code> element and an
368
+ arbitrary number of <code class="code">&lt;define-regex&gt;</code> elements, interleaved.
369
+ It has no attributes.
370
+ Every contained element must have its <code class="code">id</code> attribute set to an
371
+ identifier unique for the document. Exactly one of the contained
372
+ <code class="code">&lt;context&gt;</code> element must have
373
+ the <code class="code">id</code> attribute set to the <code class="code">id</code> of the
374
+ <code class="code">&lt;language&gt;</code> root element,
375
+ representing the initial context for the highlighting, the one the engine
376
+ enters at the beginning of the highlighted file.
377
+ </p>
378
+ <p>
379
+ Contained elements:
380
+ <span class="simplelist"><code class="code">&lt;context&gt;</code> (one or more), <code class="code">&lt;define-regex&gt;</code> (zero or more)</span>.
381
+ </p>
382
+ </div>
383
+ <div class="refsect1">
384
+ <a name="id-1.4.3.13"></a><h2>Tag <code class="code">&lt;define-regex&gt;</code>
385
+ </h2>
386
+ <p>
387
+ The syntax highlighting engine of GtkSourceView uses
388
+ <a href="/home/seb/jhbuild/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html#GRegex"><span class="type">GRegex</span></a>,
389
+ which uses the PCRE library. See the
390
+ <a class="ulink" href="https://developer.gnome.org/glib/stable/glib-regex-syntax.html" target="_top">Regular expression syntax</a>
391
+ page in the GLib reference manual.
392
+ </p>
393
+ <p>
394
+ The <code class="code">&lt;define-regex&gt;</code> tag defines a regular expression that can
395
+ be reused inside other regular expression, to avoid replicating common portions.
396
+ Those regular expressions are in the form <code class="code">/regex/options</code>. If there
397
+ are no options to be specified and you don't need to match the spaces at the
398
+ start and at the end of the regular expression, you can omit the slashes,
399
+ putting here only <code class="code">regex</code>. The possible options are those specified
400
+ above in the description of the <code class="code">&lt;default-regex-options&gt;</code>
401
+ element. To disable a group of options, instead, you have to prepend an hyphen
402
+ <code class="code">-</code> to them. In GtkSourceView are also available some extensions to
403
+ the standard Perl style regular expressions:
404
+ </p>
405
+ <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
406
+ <li class="listitem"><p>
407
+ <code class="code">\%[</code> and <code class="code">\%]</code> are custom word boundaries, which can
408
+ be redefined with the <code class="code">&lt;keyword-char-class&gt;</code> (in contrast with
409
+ <code class="code">\b</code>);
410
+ </p></li>
411
+ <li class="listitem"><p>
412
+ <code class="code">\%{id}</code> will include the regular expression defined in another
413
+ <code class="code">&lt;define-regex&gt;</code> element with the specified id.
414
+ </p></li>
415
+ </ul></div>
416
+ <p>
417
+ It is allowed to use any of the attributes from
418
+ <code class="code">&lt;default-regex-options&gt;</code> as attributes of this tag.
419
+ </p>
420
+ <p>
421
+ Contained elements: none.
422
+ </p>
423
+ <div class="variablelist">
424
+ <p class="title"><b>Attributes:</b></p>
425
+ <table border="0" class="variablelist">
426
+ <colgroup>
427
+ <col align="left" valign="top">
428
+ <col>
429
+ </colgroup>
430
+ <tbody><tr>
431
+ <td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
432
+ <td><p>
433
+ Identifier for the regular expression. This is used
434
+ for the inclusion of the defined regular expression and must be unique
435
+ for the current document. It can contain a string of letters, digits,
436
+ hyphens ("<code class="code">-</code>") and underscores ("<code class="code">_</code>").
437
+ </p></td>
438
+ </tr></tbody>
439
+ </table>
440
+ </div>
441
+ </div>
442
+ <div class="refsect1">
443
+ <a name="id-1.4.3.14"></a><h2>Tag <code class="code">&lt;context&gt;</code>
444
+ </h2>
445
+ <p>
446
+ This is the most important element when describing the syntax: the file to
447
+ be highlighted is partitioned in contexts representing the portions to be
448
+ colored differently. Contexts can also contain other contexts.
449
+ There are different kind of context elements: simple contexts, container
450
+ contexts, sub-pattern contexts, reference contexts and keyword contexts.
451
+ </p>
452
+ <p>
453
+ Context classes can be enabled or disabled for some contexts, with the
454
+ <code class="code">class</code> and <code class="code">class-disabled</code> attributes. You can create
455
+ your own context classes in custom language definition files. Here are the
456
+ default context classes:
457
+ </p>
458
+ <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
459
+ <li class="listitem"><p>
460
+ <span class="emphasis"><em>comment</em></span>: the context delimits a comment;
461
+ </p></li>
462
+ <li class="listitem"><p>
463
+ <span class="emphasis"><em>no-spell-check</em></span>: the context's content should
464
+ not be spell checked;
465
+ </p></li>
466
+ <li class="listitem"><p>
467
+ <span class="emphasis"><em>path</em></span>: the context delimits a path to a file;
468
+ </p></li>
469
+ <li class="listitem"><p>
470
+ <span class="emphasis"><em>string</em></span>: the context delimits a string.
471
+ </p></li>
472
+ </ul></div>
473
+ <div class="refsect2">
474
+ <a name="id-1.4.3.14.5"></a><h3>Simple contexts</h3>
475
+ They contain a mandatory <code class="code">&lt;match&gt;</code> element and an optional
476
+ <code class="code">&lt;include&gt;</code> element. The context will span over the strings
477
+ matched by the regular expression contained in the <code class="code">&lt;match&gt;</code>
478
+ element. In the <code class="code">&lt;include&gt;</code> element you
479
+ can only put sub-pattern contexts.
480
+
481
+ <p>
482
+ Contained elements:
483
+ <span class="simplelist"><code class="code">&lt;match&gt;</code> (mandatory), <code class="code">&lt;include&gt;</code> (optional)</span>.
484
+ </p>
485
+ <div class="variablelist">
486
+ <p class="title"><b>Attributes:</b></p>
487
+ <table border="0" class="variablelist">
488
+ <colgroup>
489
+ <col align="left" valign="top">
490
+ <col>
491
+ </colgroup>
492
+ <tbody>
493
+ <tr>
494
+ <td><p><span class="term"><code class="code">id</code> (optional)</span></p></td>
495
+ <td><p>
496
+ A unique identifier for the context, used in references to the context. It
497
+ can contain a string of letters, digits, hyphens ("<code class="code">-</code>") and
498
+ underscores ("<code class="code">_</code>").
499
+ </p></td>
500
+ </tr>
501
+ <tr>
502
+ <td><p><span class="term"><code class="code">style-ref</code> (optional)</span></p></td>
503
+ <td><p>
504
+ Highlighting style for this context. Value of this attribute
505
+ may be id of a style defined in current lang file, or id of a style
506
+ defined in other files prefixed with corresponding language id,
507
+ e.g. "def:comment".
508
+ </p></td>
509
+ </tr>
510
+ <tr>
511
+ <td><p><span class="term"><code class="code">extend-parent</code> (optional)</span></p></td>
512
+ <td><p>
513
+ A boolean value telling the engine whether the context has higher
514
+ priority than the end of its parent. If not specified it defaults to
515
+ <code class="code">true</code>.
516
+ </p></td>
517
+ </tr>
518
+ <tr>
519
+ <td><p><span class="term"><code class="code">end-parent</code> (optional)</span></p></td>
520
+ <td><p>
521
+ A boolean value telling the engine whether the context terminates parent context.
522
+ If not specified it defaults to <code class="code">false</code>.
523
+ </p></td>
524
+ </tr>
525
+ <tr>
526
+ <td><p><span class="term"><code class="code">first-line-only</code> (optional)</span></p></td>
527
+ <td><p>
528
+ A boolean value telling the engine whether the context can occur only
529
+ on the first line of buffer. If not specified it defaults to <code class="code">false</code>.
530
+ </p></td>
531
+ </tr>
532
+ <tr>
533
+ <td><p><span class="term"><code class="code">once-only</code> (optional)</span></p></td>
534
+ <td><p>
535
+ A boolean value telling the engine whether the context can occur only
536
+ once in its parent. If not specified it defaults to <code class="code">false</code>.
537
+ </p></td>
538
+ </tr>
539
+ <tr>
540
+ <td><p><span class="term"><code class="code">class</code> (optional)</span></p></td>
541
+ <td><p>
542
+ A space-separated list of context classes to enable.
543
+ </p></td>
544
+ </tr>
545
+ <tr>
546
+ <td><p><span class="term"><code class="code">class-disabled</code> (optional)</span></p></td>
547
+ <td><p>
548
+ A space-separated list of context classes to disable.
549
+ </p></td>
550
+ </tr>
551
+ </tbody>
552
+ </table>
553
+ </div>
554
+ </div>
555
+ <hr>
556
+ <div class="refsect2">
557
+ <a name="id-1.4.3.14.6"></a><h3>Container contexts</h3>
558
+ They contain a <code class="code">&lt;start&gt;</code> element and an optional
559
+ <code class="code">&lt;end&gt;</code>. They respectively contain the regular
560
+ expression that makes the engine enter in the context and the terminating one.
561
+ In the optional <code class="code">&lt;include&gt;</code> element you can put contained
562
+ contexts of every type (simple, container, sub-pattern or reference).
563
+ If the <code class="code">&lt;start&gt;</code> element is omitted, then the
564
+ <code class="code">id</code> attribute and the <code class="code">&lt;include&gt;</code> become
565
+ mandatory (the context can only be used as a container to include
566
+ its children).
567
+
568
+ <p>
569
+ Contained elements:
570
+ <span class="simplelist"><code class="code">&lt;start&gt;</code> (optional), <code class="code">&lt;end&gt;</code> (optional), <code class="code">&lt;include&gt;</code> (optional)</span>.
571
+ </p>
572
+ <div class="variablelist">
573
+ <p class="title"><b>Attributes:</b></p>
574
+ <table border="0" class="variablelist">
575
+ <colgroup>
576
+ <col align="left" valign="top">
577
+ <col>
578
+ </colgroup>
579
+ <tbody>
580
+ <tr>
581
+ <td><p><span class="term"><code class="code">id</code> (mandatory only if <code class="code">&lt;start&gt;</code> not present)</span></p></td>
582
+ <td><p>
583
+ A unique identifier for the context, used in references to the context. It
584
+ can contain a string of letters, digits, hyphens ("<code class="code">-</code>") and
585
+ underscores ("<code class="code">_</code>").
586
+ </p></td>
587
+ </tr>
588
+ <tr>
589
+ <td><p><span class="term"><code class="code">style-ref</code> (optional)</span></p></td>
590
+ <td><p>
591
+ Highlighting style for this context. Value of this attribute
592
+ may be id of a style defined in current lang file, or id of a style
593
+ defined in other files prefixed with corresponding language id,
594
+ e.g. "def:comment".
595
+ </p></td>
596
+ </tr>
597
+ <tr>
598
+ <td><p><span class="term"><code class="code">style-inside</code> (optional)</span></p></td>
599
+ <td><p>
600
+ If this attribute is "true", then the highlighting style will
601
+ be applied to the area between start and end matches; otherwise
602
+ whole context will be highlighted.
603
+ </p></td>
604
+ </tr>
605
+ <tr>
606
+ <td><p><span class="term"><code class="code">extend-parent</code> (optional)</span></p></td>
607
+ <td><p>
608
+ A boolean value telling the engine whether the context has a higher
609
+ priority than the end of its parent. If not specified it defaults to
610
+ <code class="code">true</code>.
611
+ </p></td>
612
+ </tr>
613
+ <tr>
614
+ <td><p><span class="term"><code class="code">end-at-line-end</code> (optional)</span></p></td>
615
+ <td><p>
616
+ A boolean value telling the engine whether the context must be forced
617
+ to end at the end of the line. If not specified it defaults to
618
+ <code class="code">false</code>.
619
+ </p></td>
620
+ </tr>
621
+ <tr>
622
+ <td><p><span class="term"><code class="code">end-parent</code> (optional)</span></p></td>
623
+ <td><p>
624
+ A boolean value telling the engine whether the context terminates parent context
625
+ when it ends.
626
+ If not specified it defaults to <code class="code">false</code>.
627
+ </p></td>
628
+ </tr>
629
+ <tr>
630
+ <td><p><span class="term"><code class="code">first-line-only</code> (optional)</span></p></td>
631
+ <td><p>
632
+ A boolean value telling the engine whether the context can start only
633
+ on the first line of buffer. If not specified it defaults to <code class="code">false</code>.
634
+ </p></td>
635
+ </tr>
636
+ <tr>
637
+ <td><p><span class="term"><code class="code">once-only</code> (optional)</span></p></td>
638
+ <td><p>
639
+ A boolean value telling the engine whether the context can occur only
640
+ once in its parent. For a container context, it means that
641
+ <span class="emphasis"><em>each</em></span> included context can occur once.
642
+ If not specified it defaults to <code class="code">false</code>.
643
+ </p></td>
644
+ </tr>
645
+ <tr>
646
+ <td><p><span class="term"><code class="code">class</code> (optional)</span></p></td>
647
+ <td><p>
648
+ A space-separated list of context classes to enable.
649
+ </p></td>
650
+ </tr>
651
+ <tr>
652
+ <td><p><span class="term"><code class="code">class-disabled</code> (optional)</span></p></td>
653
+ <td><p>
654
+ A space-separated list of context classes to disable.
655
+ </p></td>
656
+ </tr>
657
+ </tbody>
658
+ </table>
659
+ </div>
660
+ </div>
661
+ <hr>
662
+ <div class="refsect2">
663
+ <a name="id-1.4.3.14.7"></a><h3>Sub-pattern contexts</h3>
664
+ <p>
665
+ They refer to a group in a regular expression of the parent context, so it
666
+ is possible to highlight differently only a portion of the matched regular
667
+ expression.
668
+ </p>
669
+ <p>
670
+ Contained elements: none.
671
+ </p>
672
+ <div class="variablelist">
673
+ <p class="title"><b>Attributes:</b></p>
674
+ <table border="0" class="variablelist">
675
+ <colgroup>
676
+ <col align="left" valign="top">
677
+ <col>
678
+ </colgroup>
679
+ <tbody>
680
+ <tr>
681
+ <td><p><span class="term"><code class="code">id</code> (optional)</span></p></td>
682
+ <td><p>
683
+ A unique identifier for the context. It can contain a string of letters,
684
+ digits, hyphens ("<code class="code">-</code>") and underscores ("<code class="code">_</code>").
685
+ </p></td>
686
+ </tr>
687
+ <tr>
688
+ <td><p><span class="term"><code class="code">sub-pattern</code> (mandatory)</span></p></td>
689
+ <td><p>
690
+ The sub-pattern to which we refer. "0" means the whole expression, "1" the
691
+ first group, "2" the second one, etc. If named sub-patterns are used you can
692
+ also use the name.
693
+ </p></td>
694
+ </tr>
695
+ <tr>
696
+ <td><p><span class="term"><code class="code">where</code> (mandatory only in container contexts)</span></p></td>
697
+ <td><p>
698
+ Can be "<code class="code">start</code>" or "<code class="code">end</code>". It has to be used
699
+ only if the parent is a container context to specify whether the
700
+ sub-pattern is in the regular
701
+ expression of the <code class="code">&lt;start&gt;</code> or the <code class="code">&lt;end&gt;</code>
702
+ element. In simple contexts it must be omitted.
703
+ </p></td>
704
+ </tr>
705
+ <tr>
706
+ <td><p><span class="term"><code class="code">class</code> (optional)</span></p></td>
707
+ <td><p>
708
+ A space-separated list of context classes to enable.
709
+ </p></td>
710
+ </tr>
711
+ <tr>
712
+ <td><p><span class="term"><code class="code">class-disabled</code> (optional)</span></p></td>
713
+ <td><p>
714
+ A space-separated list of context classes to disable.
715
+ </p></td>
716
+ </tr>
717
+ </tbody>
718
+ </table>
719
+ </div>
720
+ </div>
721
+ <hr>
722
+ <div class="refsect2">
723
+ <a name="id-1.4.3.14.8"></a><h3>Reference contexts</h3>
724
+ <p>
725
+ Used to include a previously defined context.
726
+ </p>
727
+ <p>
728
+ Contained elements: none.
729
+ </p>
730
+ <div class="variablelist">
731
+ <p class="title"><b>Attributes:</b></p>
732
+ <table border="0" class="variablelist">
733
+ <colgroup>
734
+ <col align="left" valign="top">
735
+ <col>
736
+ </colgroup>
737
+ <tbody>
738
+ <tr>
739
+ <td><p><span class="term"><code class="code">ref</code> (mandatory)</span></p></td>
740
+ <td><p>
741
+ The id of the context to be included. A colon followed by an asterisk
742
+ ("<code class="code">:*</code>") at the end of the id means that the parent should include
743
+ every children of the specified context, instead of the context itself.
744
+ Prepending the id of another language to the id of the context (separated
745
+ with a semicolon ":") is possible to include contexts defined inside such
746
+ external language.
747
+ </p></td>
748
+ </tr>
749
+ <tr>
750
+ <td><p><span class="term"><code class="code">style-ref</code> (optional)</span></p></td>
751
+ <td><p>
752
+ Style in included context may be overridden by using this attribute.
753
+ Its value is id of the style to be used instead of style specified
754
+ in the referenced context.
755
+ </p></td>
756
+ </tr>
757
+ <tr>
758
+ <td><p><span class="term"><code class="code">ignore-style</code> (optional)</span></p></td>
759
+ <td><p>
760
+ If this attribute is "true" then the referenced context will not
761
+ be highlighted. It does not affect child contexts and their styles.
762
+ </p></td>
763
+ </tr>
764
+ <tr>
765
+ <td><p><span class="term"><code class="code">original</code> (optional)</span></p></td>
766
+ <td><p>
767
+ If this attribute is "true", it references the original context, if it
768
+ has been replaced with the <code class="code">&lt;replace&gt;</code> tag.
769
+ </p></td>
770
+ </tr>
771
+ </tbody>
772
+ </table>
773
+ </div>
774
+ </div>
775
+ <hr>
776
+ <div class="refsect2">
777
+ <a name="id-1.4.3.14.9"></a><h3>Keyword contexts</h3>
778
+ <p>
779
+ They contain a list of <code class="code">&lt;keyword&gt;</code> and matches every keyword
780
+ listed. You can also put a <code class="code">&lt;prefix&gt;</code> and/or a
781
+ <code class="code">&lt;suffix&gt;</code> common to every keyword.
782
+ </p>
783
+ <p>
784
+ Note that keywords are matched in the order they are listed, so if you
785
+ have both a keyword "foo" and a keyword "foobar", you should always list
786
+ foobar before foo, or it will never be matched.
787
+ </p>
788
+ <p>
789
+ Contained elements:
790
+ <span class="simplelist"><code class="code">&lt;prefix&gt;</code> (optional), <code class="code">&lt;suffix&gt;</code> (optional), <code class="code">&lt;keyword&gt;</code> (one or more)</span>.
791
+ </p>
792
+ <p>
793
+ The attributes are the same used in simple contexts. If the
794
+ <code class="code">once-only</code> attribute is <code class="code">true</code>, it means that
795
+ <span class="emphasis"><em>each</em></span> keyword can occur once.
796
+ </p>
797
+ </div>
798
+ </div>
799
+ <div class="refsect1">
800
+ <a name="id-1.4.3.15"></a><h2>Tag <code class="code">&lt;include&gt;</code>
801
+ </h2>
802
+ <p>
803
+ Contains the list of context contained in the current
804
+ <code class="code">&lt;context&gt;</code>.
805
+ </p>
806
+ <p>
807
+ Contained elements:
808
+ <span class="simplelist"><code class="code">&lt;context&gt;</code> (one or more), <code class="code">&lt;define-regex&gt;</code> (zero or more)</span>.
809
+ </p>
810
+ </div>
811
+ <div class="refsect1">
812
+ <a name="id-1.4.3.16"></a><h2>Tag <code class="code">&lt;match&gt;</code>
813
+ </h2>
814
+ <p>
815
+ Contains the regular expression for the current simple context.
816
+ The expression is in the same form used in
817
+ <code class="code">&lt;define-regex&gt;</code> elements.
818
+ It is allowed to use any of the attributes from
819
+ <code class="code">&lt;default-regex-options&gt;</code> as attributes of this tag.
820
+ </p>
821
+ <p>
822
+ Contained elements: none.
823
+ </p>
824
+ </div>
825
+ <div class="refsect1">
826
+ <a name="id-1.4.3.17"></a><h2>Tag <code class="code">&lt;start&gt;</code>
827
+ </h2>
828
+ <p>
829
+ Contains the starting regular expression for the current container context.
830
+ The expression is in the same form used in <code class="code">&lt;define-regex&gt;</code>
831
+ elements.
832
+ It is allowed to use any of the attributes from
833
+ <code class="code">&lt;default-regex-options&gt;</code> as attributes of this tag.
834
+ </p>
835
+ <p>
836
+ Contained elements: none.
837
+ </p>
838
+ </div>
839
+ <div class="refsect1">
840
+ <a name="id-1.4.3.18"></a><h2>Tag <code class="code">&lt;end&gt;</code>
841
+ </h2>
842
+ <p>
843
+ Contains the terminating regular expression for the current container
844
+ context. The expression is in the same form used in <code class="code">&lt;define-regex&gt;</code>
845
+ elements, with an extension: <code class="code">\%{sub-pattern@start}</code> will be
846
+ substituted with the string matched in the corresponding sub-pattern
847
+ (can be a number or a name if named sub-patterns are used) in the
848
+ preceding <code class="code">&lt;start&gt;</code> element. For instance you could
849
+ implement shell-style here-documents with this code:
850
+ </p>
851
+ <pre class="programlisting">
852
+ &lt;context id="here-doc"&gt;
853
+ &lt;start&gt;&amp;lt;&amp;lt;\s*(\S+)$&lt;/start&gt;
854
+ &lt;end&gt;^\%{1@start}$&lt;/end&gt;
855
+ &lt;/context&gt;
856
+ </pre>
857
+ <p>
858
+ It is also possible to use any of the attributes from
859
+ <code class="code">&lt;default-regex-options&gt;</code> as attributes of this tag.
860
+ </p>
861
+ <p>
862
+ Contained elements: none.
863
+ </p>
864
+ </div>
865
+ <div class="refsect1">
866
+ <a name="id-1.4.3.19"></a><h2>Tag <code class="code">&lt;keyword&gt;</code>
867
+ </h2>
868
+ <p>
869
+ Contains a keyword to be matched by the current context. The keyword is a
870
+ regular expression in the form used in <code class="code">&lt;define-regex&gt;</code>.
871
+ </p>
872
+ <p>
873
+ Contained elements: none.
874
+ </p>
875
+ </div>
876
+ <div class="refsect1">
877
+ <a name="id-1.4.3.20"></a><h2>Tag <code class="code">&lt;prefix&gt;</code>
878
+ </h2>
879
+ <p>
880
+ Contains a prefix common to all of the following keywords in the current
881
+ context. The prefix is a regular expression in the form used in
882
+ <code class="code">&lt;define-regex&gt;</code>. If not specified it defaults to
883
+ <code class="code">\%[</code>
884
+ </p>
885
+ <p>
886
+ Contained elements: none.
887
+ </p>
888
+ </div>
889
+ <div class="refsect1">
890
+ <a name="id-1.4.3.21"></a><h2>Tag <code class="code">&lt;suffix&gt;</code>
891
+ </h2>
892
+ <p>
893
+ Contains a suffix common to all of the following keywords in the current
894
+ context. The suffix is a regular expression in the form used in
895
+ <code class="code">&lt;define-regex&gt;</code>. If not specified it defaults to
896
+ <code class="code">\%]</code>
897
+ </p>
898
+ <p>
899
+ Contained elements: none.
900
+ </p>
901
+ </div>
902
+ <div class="refsect1">
903
+ <a name="id-1.4.3.22"></a><h2>Tag <code class="code">&lt;replace&gt;</code>
904
+ </h2>
905
+ <p>
906
+ The replace tag allows you to change one context so it functions as
907
+ another context. For example, in the <code class="code">html.lang</code> definition,
908
+ there are a few references to a null context with id
909
+ "<code class="code">embedded-lang-hook</code>". In <code class="code">php.lang</code>, that context is
910
+ replaced like this: <code class="code">&lt;replace id="html:embedded-lang-hook"
911
+ ref="php-block"&gt;</code>, so that php blocks are recognized within the
912
+ <code class="code">html:html</code> context at the points where the
913
+ <code class="code">embedded-lang-hook</code> context appears.
914
+ </p>
915
+ <p>
916
+ Contained elements: none.
917
+ </p>
918
+ <div class="variablelist">
919
+ <p class="title"><b>Attributes:</b></p>
920
+ <table border="0" class="variablelist">
921
+ <colgroup>
922
+ <col align="left" valign="top">
923
+ <col>
924
+ </colgroup>
925
+ <tbody>
926
+ <tr>
927
+ <td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
928
+ <td><p>
929
+ The id of the context to replace. Ex: <code class="code">id="html:embedded-lang-hook"</code>
930
+ </p></td>
931
+ </tr>
932
+ <tr>
933
+ <td><p><span class="term"><code class="code">ref</code> (mandatory)</span></p></td>
934
+ <td><p>
935
+ The id of the context to put in place of the context being replaced. Ex: <code class="code">ref="php-block"</code>
936
+ </p></td>
937
+ </tr>
938
+ </tbody>
939
+ </table>
940
+ </div>
941
+ </div>
942
+ </div>
943
+ <div class="footer">
944
+ <hr>Generated by GTK-Doc V1.28.1</div>
945
+ </body>
946
+ </html>