gtksourceview3 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/ext/gtksourceview3/extconf.rb +1 -2
  4. data/ext/gtksourceview3/rbgtksourcegutterrenderertext.c +1 -25
  5. data/ext/gtksourceview3/rbgtksourceview3conversions.h +7 -0
  6. data/ext/gtksourceview3/rbgtksourceview3private.h +0 -1
  7. data/lib/2.0/gtksourceview3.so +0 -0
  8. data/test/run-test.rb +17 -7
  9. data/test/test_mark_attributes.rb +1 -1
  10. data/test/test_source_gutter_renderer.rb +33 -0
  11. data/test/test_source_language_manager.rb +46 -0
  12. data/test/test_source_view.rb +34 -0
  13. data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
  14. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksource.h +4 -0
  15. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcebuffer.h +28 -0
  16. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceencoding.h +54 -0
  17. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h +115 -0
  18. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefileloader.h +122 -0
  19. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefilesaver.h +147 -0
  20. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutter.h +3 -0
  21. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h +48 -2
  22. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceundomanager.h +1 -3
  23. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview-typebuiltins.h +33 -0
  24. data/vendor/local/lib/girepository-1.0/GtkSource-3.0.typelib +0 -0
  25. data/vendor/local/lib/libgtksourceview-3.0.dll.a +0 -0
  26. data/vendor/local/lib/libgtksourceview-3.0.la +3 -3
  27. data/vendor/local/lib/locale/ar/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  28. data/vendor/local/lib/locale/as/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  29. data/vendor/local/lib/locale/be/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  30. data/vendor/local/lib/locale/bg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  31. data/vendor/local/lib/locale/bn_IN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  32. data/vendor/local/lib/locale/ca/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  33. data/vendor/local/lib/locale/ca@valencia/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  34. data/vendor/local/lib/locale/cs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  35. data/vendor/local/lib/locale/da/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  36. data/vendor/local/lib/locale/de/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  37. data/vendor/local/lib/locale/el/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  38. data/vendor/local/lib/locale/en_GB/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  39. data/vendor/local/lib/locale/es/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  40. data/vendor/local/lib/locale/eu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  41. data/vendor/local/lib/locale/fa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  42. data/vendor/local/lib/locale/fi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  43. data/vendor/local/lib/locale/fr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  44. data/vendor/local/lib/locale/ga/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  45. data/vendor/local/lib/locale/gl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  46. data/vendor/local/lib/locale/gu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  47. data/vendor/local/lib/locale/he/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  48. data/vendor/local/lib/locale/hi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  49. data/vendor/local/lib/locale/hu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  50. data/vendor/local/lib/locale/id/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  51. data/vendor/local/lib/locale/it/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  52. data/vendor/local/lib/locale/ja/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  53. data/vendor/local/lib/locale/kn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  54. data/vendor/local/lib/locale/ko/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  55. data/vendor/local/lib/locale/lt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  56. data/vendor/local/lib/locale/lv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  57. data/vendor/local/lib/locale/ml/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  58. data/vendor/local/lib/locale/mr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  59. data/vendor/local/lib/locale/nb/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  60. data/vendor/local/lib/locale/nl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  61. data/vendor/local/lib/locale/or/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  62. data/vendor/local/lib/locale/pa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  63. data/vendor/local/lib/locale/pl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  64. data/vendor/local/lib/locale/pt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  65. data/vendor/local/lib/locale/pt_BR/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  66. data/vendor/local/lib/locale/ru/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  67. data/vendor/local/lib/locale/sk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  68. data/vendor/local/lib/locale/sl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  69. data/vendor/local/lib/locale/sr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  70. data/vendor/local/lib/locale/sr@latin/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  71. data/vendor/local/lib/locale/sv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  72. data/vendor/local/lib/locale/ta/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  73. data/vendor/local/lib/locale/te/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  74. data/vendor/local/lib/locale/th/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  75. data/vendor/local/lib/locale/tr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  76. data/vendor/local/lib/locale/ug/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  77. data/vendor/local/lib/locale/uk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  78. data/vendor/local/lib/locale/vi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  79. data/vendor/local/lib/locale/zh_CN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  80. data/vendor/local/lib/locale/zh_HK/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  81. data/vendor/local/lib/locale/zh_TW/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  82. data/vendor/local/lib/pkgconfig/gtksourceview-3.0.pc +2 -2
  83. data/vendor/local/share/gir-1.0/GtkSource-3.0.gir +2211 -330
  84. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html +1682 -983
  85. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html +818 -573
  86. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html +267 -189
  87. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionInfo.html +209 -157
  88. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionItem.html +247 -167
  89. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProposal.html +428 -295
  90. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProvider.html +558 -420
  91. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionWords.html +217 -125
  92. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceEncoding.html +366 -0
  93. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFile.html +563 -0
  94. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileLoader.html +769 -0
  95. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileSaver.html +962 -0
  96. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutter.html +341 -196
  97. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRenderer.html +1211 -827
  98. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererPixbuf.html +327 -206
  99. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererText.html +156 -96
  100. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguage.html +431 -269
  101. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguageManager.html +300 -235
  102. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMark.html +203 -139
  103. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMarkAttributes.html +640 -452
  104. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourcePrintCompositor.html +1444 -1114
  105. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchContext.html +794 -573
  106. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchSettings.html +421 -280
  107. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyle.html +232 -99
  108. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleScheme.html +283 -178
  109. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeManager.html +326 -220
  110. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceUndoManager.html +313 -194
  111. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceView.html +1430 -924
  112. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +33 -13
  113. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-0.html +7 -7
  114. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-10.html +47 -47
  115. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-12.html +39 -0
  116. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-14.html +299 -0
  117. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-4.html +5 -5
  118. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-deprecated.html +35 -15
  119. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-full.html +742 -430
  120. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch01.html +31 -19
  121. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch02.html +4 -4
  122. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceUtils.html +95 -81
  123. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0.devhelp2 +519 -463
  124. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +32 -18
  125. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +326 -153
  126. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-reference.html +151 -57
  127. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-tutorial.html +14 -17
  128. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/object-tree.html +42 -37
  129. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style-reference.html +39 -8
  130. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style.css +260 -105
  131. data/vendor/local/share/gtksourceview-3.0/language-specs/actionscript.lang +1 -1
  132. data/vendor/local/share/gtksourceview-3.0/language-specs/ada.lang +1 -1
  133. data/vendor/local/share/gtksourceview-3.0/language-specs/ansforth94.lang +729 -0
  134. data/vendor/local/share/gtksourceview-3.0/language-specs/asp.lang +1 -1
  135. data/vendor/local/share/gtksourceview-3.0/language-specs/automake.lang +3 -2
  136. data/vendor/local/share/gtksourceview-3.0/language-specs/awk.lang +1 -1
  137. data/vendor/local/share/gtksourceview-3.0/language-specs/bennugd.lang +1 -1
  138. data/vendor/local/share/gtksourceview-3.0/language-specs/bluespec.lang +1 -1
  139. data/vendor/local/share/gtksourceview-3.0/language-specs/boo.lang +1 -1
  140. data/vendor/local/share/gtksourceview-3.0/language-specs/c.lang +1 -1
  141. data/vendor/local/share/gtksourceview-3.0/language-specs/cg.lang +1 -1
  142. data/vendor/local/share/gtksourceview-3.0/language-specs/changelog.lang +1 -1
  143. data/vendor/local/share/gtksourceview-3.0/language-specs/chdr.lang +1 -1
  144. data/vendor/local/share/gtksourceview-3.0/language-specs/cmake.lang +1 -1
  145. data/vendor/local/share/gtksourceview-3.0/language-specs/cobol.lang +536 -345
  146. data/vendor/local/share/gtksourceview-3.0/language-specs/cpp.lang +1 -1
  147. data/vendor/local/share/gtksourceview-3.0/language-specs/csharp.lang +1 -1
  148. data/vendor/local/share/gtksourceview-3.0/language-specs/css.lang +6 -1
  149. data/vendor/local/share/gtksourceview-3.0/language-specs/cuda.lang +1 -1
  150. data/vendor/local/share/gtksourceview-3.0/language-specs/d.lang +25 -3
  151. data/vendor/local/share/gtksourceview-3.0/language-specs/def.lang +8 -0
  152. data/vendor/local/share/gtksourceview-3.0/language-specs/desktop.lang +1 -1
  153. data/vendor/local/share/gtksourceview-3.0/language-specs/diff.lang +1 -1
  154. data/vendor/local/share/gtksourceview-3.0/language-specs/dosbatch.lang +1 -1
  155. data/vendor/local/share/gtksourceview-3.0/language-specs/dot.lang +1 -1
  156. data/vendor/local/share/gtksourceview-3.0/language-specs/dpatch.lang +2 -2
  157. data/vendor/local/share/gtksourceview-3.0/language-specs/dtd.lang +1 -1
  158. data/vendor/local/share/gtksourceview-3.0/language-specs/eiffel.lang +1 -1
  159. data/vendor/local/share/gtksourceview-3.0/language-specs/erlang.lang +1 -1
  160. data/vendor/local/share/gtksourceview-3.0/language-specs/fcl.lang +1 -3
  161. data/vendor/local/share/gtksourceview-3.0/language-specs/forth.lang +1 -1
  162. data/vendor/local/share/gtksourceview-3.0/language-specs/fortran.lang +85 -6
  163. data/vendor/local/share/gtksourceview-3.0/language-specs/fsharp.lang +1 -1
  164. data/vendor/local/share/gtksourceview-3.0/language-specs/gdb-log.lang +1 -1
  165. data/vendor/local/share/gtksourceview-3.0/language-specs/glsl.lang +1 -1
  166. data/vendor/local/share/gtksourceview-3.0/language-specs/go.lang +1 -1
  167. data/vendor/local/share/gtksourceview-3.0/language-specs/gtkrc.lang +1 -1
  168. data/vendor/local/share/gtksourceview-3.0/language-specs/haskell-literate.lang +1 -1
  169. data/vendor/local/share/gtksourceview-3.0/language-specs/haskell.lang +1 -1
  170. data/vendor/local/share/gtksourceview-3.0/language-specs/html.lang +238 -137
  171. data/vendor/local/share/gtksourceview-3.0/language-specs/idl.lang +1 -1
  172. data/vendor/local/share/gtksourceview-3.0/language-specs/ini.lang +2 -2
  173. data/vendor/local/share/gtksourceview-3.0/language-specs/j.lang +1 -1
  174. data/vendor/local/share/gtksourceview-3.0/language-specs/java.lang +1 -1
  175. data/vendor/local/share/gtksourceview-3.0/language-specs/javascript.lang +1 -1
  176. data/vendor/local/share/gtksourceview-3.0/language-specs/json.lang +1 -1
  177. data/vendor/local/share/gtksourceview-3.0/language-specs/latex.lang +389 -133
  178. data/vendor/local/share/gtksourceview-3.0/language-specs/lex.lang +209 -0
  179. data/vendor/local/share/gtksourceview-3.0/language-specs/libtool.lang +1 -1
  180. data/vendor/local/share/gtksourceview-3.0/language-specs/llvm.lang +315 -0
  181. data/vendor/local/share/gtksourceview-3.0/language-specs/lua.lang +1 -1
  182. data/vendor/local/share/gtksourceview-3.0/language-specs/m4.lang +4 -4
  183. data/vendor/local/share/gtksourceview-3.0/language-specs/makefile.lang +1 -1
  184. data/vendor/local/share/gtksourceview-3.0/language-specs/mediawiki.lang +16 -12
  185. data/vendor/local/share/gtksourceview-3.0/language-specs/nemerle.lang +1 -1
  186. data/vendor/local/share/gtksourceview-3.0/language-specs/netrexx.lang +1 -1
  187. data/vendor/local/share/gtksourceview-3.0/language-specs/nsis.lang +1 -1
  188. data/vendor/local/share/gtksourceview-3.0/language-specs/objc.lang +1 -1
  189. data/vendor/local/share/gtksourceview-3.0/language-specs/objj.lang +1 -1
  190. data/vendor/local/share/gtksourceview-3.0/language-specs/ocaml.lang +1 -1
  191. data/vendor/local/share/gtksourceview-3.0/language-specs/ocl.lang +1 -1
  192. data/vendor/local/share/gtksourceview-3.0/language-specs/ooc.lang +1 -1
  193. data/vendor/local/share/gtksourceview-3.0/language-specs/opal.lang +1 -1
  194. data/vendor/local/share/gtksourceview-3.0/language-specs/opencl.lang +1 -1
  195. data/vendor/local/share/gtksourceview-3.0/language-specs/pascal.lang +12 -12
  196. data/vendor/local/share/gtksourceview-3.0/language-specs/perl.lang +1 -1
  197. data/vendor/local/share/gtksourceview-3.0/language-specs/php.lang +15 -15
  198. data/vendor/local/share/gtksourceview-3.0/language-specs/pkgconfig.lang +1 -1
  199. data/vendor/local/share/gtksourceview-3.0/language-specs/po.lang +1 -1
  200. data/vendor/local/share/gtksourceview-3.0/language-specs/prolog.lang +1 -1
  201. data/vendor/local/share/gtksourceview-3.0/language-specs/protobuf.lang +2 -4
  202. data/vendor/local/share/gtksourceview-3.0/language-specs/puppet.lang +1 -1
  203. data/vendor/local/share/gtksourceview-3.0/language-specs/python.lang +62 -3
  204. data/vendor/local/share/gtksourceview-3.0/language-specs/python3.lang +1 -1
  205. data/vendor/local/share/gtksourceview-3.0/language-specs/rpmspec.lang +3 -1
  206. data/vendor/local/share/gtksourceview-3.0/language-specs/rst.lang +142 -0
  207. data/vendor/local/share/gtksourceview-3.0/language-specs/ruby.lang +2 -2
  208. data/vendor/local/share/gtksourceview-3.0/language-specs/scala.lang +1 -1
  209. data/vendor/local/share/gtksourceview-3.0/language-specs/scheme.lang +1 -1
  210. data/vendor/local/share/gtksourceview-3.0/language-specs/sh.lang +2 -2
  211. data/vendor/local/share/gtksourceview-3.0/language-specs/sml.lang +1 -1
  212. data/vendor/local/share/gtksourceview-3.0/language-specs/sparql.lang +1 -1
  213. data/vendor/local/share/gtksourceview-3.0/language-specs/sql.lang +1 -1
  214. data/vendor/local/share/gtksourceview-3.0/language-specs/sweave.lang +67 -0
  215. data/vendor/local/share/gtksourceview-3.0/language-specs/systemverilog.lang +1 -1
  216. data/vendor/local/share/gtksourceview-3.0/language-specs/tcl.lang +1 -1
  217. data/vendor/local/share/gtksourceview-3.0/language-specs/vala.lang +1 -1
  218. data/vendor/local/share/gtksourceview-3.0/language-specs/vbnet.lang +1 -1
  219. data/vendor/local/share/gtksourceview-3.0/language-specs/verilog.lang +1 -1
  220. data/vendor/local/share/gtksourceview-3.0/language-specs/vhdl.lang +1 -1
  221. data/vendor/local/share/gtksourceview-3.0/language-specs/yacc.lang +2 -2
  222. data/vendor/local/share/gtksourceview-3.0/language-specs/yaml.lang +214 -0
  223. data/vendor/local/share/gtksourceview-3.0/styles/classic.xml +13 -2
  224. data/vendor/local/share/gtksourceview-3.0/styles/cobalt.xml +16 -5
  225. data/vendor/local/share/gtksourceview-3.0/styles/kate.xml +11 -3
  226. data/vendor/local/share/gtksourceview-3.0/styles/oblivion.xml +14 -4
  227. data/vendor/local/share/gtksourceview-3.0/styles/solarized-dark.xml +101 -0
  228. data/vendor/local/share/gtksourceview-3.0/styles/solarized-light.xml +101 -0
  229. data/vendor/local/share/gtksourceview-3.0/styles/styles.rng +3 -0
  230. data/vendor/local/share/gtksourceview-3.0/styles/tango.xml +14 -2
  231. data/vendor/local/share/license/gtksourceview/AUTHORS +1 -0
  232. data/vendor/local/share/license/gtksourceview/COPYING +415 -251
  233. metadata +31 -13
  234. data/lib/1.9/gtksourceview3.so +0 -0
  235. data/lib/2.1/gtksourceview3.so +0 -0
@@ -3,8 +3,9 @@
3
3
 
4
4
  This file is part of GtkSourceView
5
5
 
6
- Author: Marco Barisione <barisione@gmail.com>
7
- Copyright (C) 2005-2007 Marco Barisione <barisione@gmail.com>
6
+ Copyright (C) 2005-2007 - Marco Barisione <barisione@gmail.com>
7
+ Copyright (C) 2012-2013 - Tobias Marczewski <tmarczewski@ed-alumni.net>
8
+ Copyright (C) 2013 - Sébastien Wilmet <swilmet@gnome.org>
8
9
 
9
10
  GtkSourceView is free software; you can redistribute it and/or
10
11
  modify it under the terms of the GNU Lesser General Public
@@ -29,23 +30,141 @@
29
30
  </metadata>
30
31
 
31
32
  <styles>
32
- <style id="comment" _name="Comment" map-to="def:comment"/>
33
- <style id="documentclass" _name="Comment" map-to="def:keyword"/>
34
- <style id="usepackage" _name="Comment" map-to="def:keyword"/>
35
- <style id="newcommand" _name="Comment" map-to="def:keyword"/>
36
- <style id="display-math" _name="Math Mode"/>
37
- <style id="inline-math" _name="Inline Math Mode" map-to="latex:display-math"/>
38
- <style id="structure" _name="Inline Math Mode"/>
39
- <style id="section" _name="Inline Math Mode"/>
40
- <style id="math" _name="Math Mode" map-to="latex:display-math"/>
41
- <style id="math-bound" _name="math-bound" map-to="latex:display-math"/>
42
- <style id="include" _name="Include" map-to="def:keyword"/>
43
- <style id="common-commands" _name="Command" map-to="def:keyword"/>
44
- <style id="command" _name="Command" map-to="def:keyword"/>
45
- <style id="verbatim" _name="Verbatim" map-to="def:comment"/>
33
+ <style id="comment" _name="Comment" map-to="def:comment"/>
34
+ <style id="display-math" _name="Math Mode" map-to="def:string"/>
35
+ <style id="inline-math" _name="Inline Math Mode" map-to="latex:display-math"/>
36
+ <style id="math" _name="Math Mode" map-to="latex:display-math"/>
37
+ <style id="math-boundary" _name="Math Boundary" map-to="latex:display-math"/>
38
+ <style id="include" _name="Include" map-to="def:keyword"/>
39
+ <style id="common-commands" _name="Command" map-to="def:keyword"/>
40
+ <style id="command" _name="Command" map-to="def:keyword"/>
41
+ <style id="verbatim" _name="Verbatim" map-to="def:comment"/>
42
+ <style id="special-char" _name="Special Character" map-to="def:special-char"/>
43
+ <style id="part" _name="Part Heading" map-to="def:heading0"/>
44
+ <style id="chapter" _name="Chapter Heading" map-to="def:heading1"/>
45
+ <style id="section" _name="Section Heading" map-to="def:heading2"/>
46
+ <style id="subsection" _name="SubSection Heading" map-to="def:heading3"/>
47
+ <style id="subsubsection" _name="SubSubSection Heading" map-to="def:heading4"/>
48
+ <style id="paragraph" _name="Paragraph Heading" map-to="def:heading5"/>
49
+ <style id="subparagraph" _name="SubParagraph Heading" map-to="def:heading6"/>
50
+
51
+ <!-- names, e.g., name of package, name of environment, name of class -->
52
+ <style id="name" _name="Name" map-to="def:identifier"/>
46
53
  </styles>
47
54
 
48
55
  <definitions>
56
+
57
+ <!-- comment -->
58
+
59
+ <context id="comment">
60
+ <include>
61
+ <context id="end-line-comment" style-ref="comment">
62
+ <start>%</start>
63
+ <end>$</end>
64
+ <include>
65
+ <context ref="def:in-comment"/>
66
+ </include>
67
+ </context>
68
+
69
+ <context id="comment-env" style-ref="comment" class="no-spell-check">
70
+ <start>\\begin\{comment\}</start>
71
+ <end>\\end\{comment\}</end>
72
+ <include>
73
+ <context ref="def:in-comment"/>
74
+ </include>
75
+ </context>
76
+ </include>
77
+ </context>
78
+
79
+ <!-- verbatim -->
80
+
81
+ <context id="verbatim-env" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
82
+ <start>(\\begin)\{(verbatim\*?|lstlisting|alltt)\}</start>
83
+ <end>(\\end)\{\%{2@start}\}</end>
84
+ <include>
85
+ <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
86
+ <context sub-pattern="1" where="end" style-ref="common-commands" class="no-spell-check"/>
87
+ </include>
88
+ </context>
89
+
90
+ <!-- Embedded R Code (Sweave package) -->
91
+
92
+ <context id="R-block" class="no-spell-check">
93
+ <start>(\\begin)\{(Scode|Sinput|Soutput)\}</start>
94
+ <end>(\\end)\{(\%{2@start})\}</end>
95
+ <include>
96
+ <context sub-pattern="1" where="start" style-ref="common-commands"/>
97
+ <context sub-pattern="2" where="start" style-ref="name"/>
98
+ <context sub-pattern="1" where="end" style-ref="common-commands"/>
99
+ <context sub-pattern="2" where="end" style-ref="name"/>
100
+ <context ref="r:r"/>
101
+ </include>
102
+ </context>
103
+
104
+ <!--using brackets is an experimental feature from the listings package. The
105
+ following must support these cases:
106
+
107
+ \lstinline[]{code in here}
108
+ \lstinline[key=val, key=val]{code in here}
109
+ \lstinline[key=val, key=val]!code in here!
110
+ \lstinline[]!code in here!
111
+ \lstinline[][code in here[
112
+ \lstinline[NOT code in here, must specify empty optional argument to use square brackets[
113
+ \lstinline{code in here}
114
+ \lstinline{code in {here} but NOT in here} % brackets do not nest
115
+ \lstinline!code in here!
116
+ \lstinline=code in here=
117
+ \lstinline{this needs to fail{
118
+
119
+ If using \verb instead of \lstinline, the brackets cannot be used
120
+ -->
121
+ <context id="lstinline-curly-brackets" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
122
+ <start>(\\lstinline)(\[.*?\])?{</start>
123
+ <end>}</end>
124
+ <include>
125
+ <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
126
+ </include>
127
+ </context>
128
+
129
+ <context id="lstinline-square-brackets" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
130
+ <!-- square brackets don't match with the pair, and they require an
131
+ optional argument, even if empty -->
132
+ <start>(\\lstinline)(\[.*?\])\[</start>
133
+ <end>\[</end>
134
+ <include>
135
+ <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
136
+ </include>
137
+ </context>
138
+
139
+ <context id="lstinline" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
140
+ <start>(\\lstinline)(\[.*?\])?((?!\[)\S)</start> <!-- ignore when starting with [ -->
141
+ <end>\%{3@start}</end>
142
+ <include>
143
+ <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
144
+ </include>
145
+ </context>
146
+
147
+ <!-- If using \verb instead of \lstinline, the brackets cannot be used -->
148
+ <context id="verbatim-inline" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
149
+ <start>(\\verb)\*?(\S)</start>
150
+ <end>\%{2@start}</end>
151
+ <include>
152
+ <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
153
+ </include>
154
+ </context>
155
+
156
+ <context id="verbatim">
157
+ <include>
158
+ <context ref="verbatim-env"/>
159
+ <context ref="verbatim-inline"/>
160
+ <context ref="lstinline-curly-brackets"/>
161
+ <context ref="lstinline-square-brackets"/>
162
+ <context ref="lstinline"/>
163
+ </include>
164
+ </context>
165
+
166
+ <!-- commands -->
167
+
49
168
  <context id="common-commands" style-ref="common-commands" class="no-spell-check">
50
169
  <prefix>\\</prefix>
51
170
  <!-- We need to special case "_" since it is not considered a
@@ -161,55 +280,243 @@
161
280
  <keyword>zeta</keyword>
162
281
  </context>
163
282
 
164
- <context id="specials-symbol" style-ref="command" class="no-spell-check">
283
+ <context id="include" style-ref="include" class="no-spell-check">
165
284
  <prefix>\\</prefix>
166
- <suffix></suffix>
167
-
168
- <keyword>\$</keyword>
169
- <keyword>&amp;</keyword>
170
- <keyword>%</keyword>
171
- <keyword>#</keyword>
172
- <keyword>_</keyword>
173
- <keyword>\{</keyword>
174
- <keyword>\}</keyword>
175
- <keyword>~</keyword>
176
- <keyword>\^</keyword>
177
- <keyword>\\</keyword>
285
+
286
+ <keyword>input</keyword>
287
+ <keyword>include</keyword>
288
+ <keyword>includeonly</keyword>
289
+ <keyword>usepackage</keyword>
178
290
  </context>
179
291
 
180
- <context id="command" style-ref="command" class="no-spell-check">
181
- <match>\\[a-zA-Z]+</match>
292
+ <context id="generic-command" style-ref="command" class="no-spell-check" extend-parent="false">
293
+ <match>\\[a-zA-Z@]+\*?</match>
182
294
  </context>
183
295
 
184
- <context id="in-math" class="no-spell-check">
296
+ <context id="specific-commands">
185
297
  <include>
186
- <context ref="common-commands"/>
187
- <context ref="specials-symbol"/>
188
- <context ref="command"/>
298
+ <context id="documentclass" class="no-spell-check">
299
+ <match>(\\documentclass)(\[.*\])?\{([a-zA-Z]+)\}</match>
300
+ <include>
301
+ <context sub-pattern="1" style-ref="common-commands"/>
302
+ <context sub-pattern="3" style-ref="name"/>
303
+ </include>
304
+ </context>
305
+
306
+ <context id="usepackage" class="no-spell-check">
307
+ <match>(\\usepackage)(\[.*\])?\{([0-9a-zA-Z,\s]+)\}</match>
308
+ <include>
309
+ <context sub-pattern="1" style-ref="include"/>
310
+ <context sub-pattern="3" style-ref="name"/>
311
+ </include>
312
+ </context>
313
+
314
+ <context id="begin-end-command" class="no-spell-check">
315
+ <match>(\\(begin|end))\{([a-zA-Z0-9]+\*?)\}</match>
316
+ <include>
317
+ <context sub-pattern="1" style-ref="common-commands"/>
318
+ <context sub-pattern="3" style-ref="name"/>
319
+ </include>
320
+ </context>
189
321
  </include>
190
322
  </context>
191
323
 
192
- <context id="in-inline-math" class="no-spell-check">
324
+ <!-- special characters -->
325
+
326
+ <define-regex id="accents" extended="true">
327
+ (\\( #leading backslash
328
+ ( #1-Accents-
329
+ [bcdHruv\.\^'`~"=] # accent symbol
330
+ \s*\{([a-zA-Z] | \\i | \\j)\} | # letter (\i \j for i,j without dot)
331
+ [\.\^'`~"=]\s*([a-zA-Z] | \\i | \\j) |# non-letter accents without braces
332
+ t\s*\{([a-zA-Z] | \\i | \\j){2}\} # special accent over two letters
333
+ ) | ( #2-Special letters-
334
+ (aa|AA | ae|AE | oe|OE | ss|SS | # letters followed by a non-word
335
+ [oO] | [lL])(?![a-zA-Z_@]) # character or e.g. \l causes
336
+ ) # unwanted behaviour (i.e. \label)
337
+ )) | (!` | \?`) #3-Spanish punctuation
338
+ </define-regex>
339
+
340
+ <context id="special-char">
193
341
  <include>
194
- <context ref="common-commands"/>
195
- <context ref="specials-symbol"/>
196
- <context ref="command"/>
342
+ <!-- Include accents here before the escaped command symbols because for
343
+ example the hat (^) can be used as an accent and will be placed over
344
+ the following letter (e.g. \^o will NOT produce ^o) -->
345
+ <context id="accents" style-ref="special-char" class="no-spell-check">
346
+ <match>\%{accents}</match>
347
+ </context>
348
+
349
+ <context id="special-symbols" style-ref="special-char" class="no-spell-check">
350
+ <prefix>\\</prefix>
351
+ <suffix></suffix>
352
+
353
+ <keyword>\$</keyword>
354
+ <keyword>&amp;</keyword>
355
+ <keyword>%</keyword>
356
+ <keyword>#</keyword>
357
+ <keyword>_</keyword>
358
+ <keyword>\{</keyword>
359
+ <keyword>\}</keyword>
360
+ <keyword>~</keyword>
361
+ <keyword>\^</keyword>
362
+ <keyword>\\</keyword>
363
+ </context>
364
+ </include>
365
+ </context>
366
+
367
+ <!-- headings -->
368
+
369
+ <context id="curly-braces-pair">
370
+ <start>\{</start>
371
+ <end>\}</end>
372
+ <include>
373
+ <context ref="curly-braces-pair"/>
374
+ <context ref="latex"/>
197
375
  </include>
198
376
  </context>
199
377
 
200
- <context id="comment" style-ref="comment">
201
- <start>%</start>
202
- <end>$</end>
378
+ <context id="headings">
203
379
  <include>
204
- <context ref="def:in-comment"/>
380
+ <context id="part" style-inside="true" style-ref="part" end-at-line-end="true">
381
+ <start>(\\part\*?)\{</start>
382
+ <end>\}</end>
383
+ <include>
384
+ <context sub-pattern="1" where="start" style-ref="common-commands"/>
385
+ <context ref="curly-braces-pair"/>
386
+ <context ref="latex"/>
387
+ </include>
388
+ </context>
389
+
390
+ <context id="chapter" style-inside="true" style-ref="chapter" end-at-line-end="true">
391
+ <start>(\\chapter\*?)\{</start>
392
+ <end>\}</end>
393
+ <include>
394
+ <context sub-pattern="1" where="start" style-ref="common-commands"/>
395
+ <context ref="curly-braces-pair"/>
396
+ <context ref="latex"/>
397
+ </include>
398
+ </context>
399
+
400
+ <context id="section" style-inside="true" style-ref="section" end-at-line-end="true">
401
+ <start>(\\section\*?)\{</start>
402
+ <end>\}</end>
403
+ <include>
404
+ <context sub-pattern="1" where="start" style-ref="common-commands"/>
405
+ <context ref="curly-braces-pair"/>
406
+ <context ref="latex"/>
407
+ </include>
408
+ </context>
409
+
410
+ <context id="subsection" style-inside="true" style-ref="subsection" end-at-line-end="true">
411
+ <start>(\\subsection\*?)\{</start>
412
+ <end>\}</end>
413
+ <include>
414
+ <context sub-pattern="1" where="start" style-ref="common-commands"/>
415
+ <context ref="curly-braces-pair"/>
416
+ <context ref="latex"/>
417
+ </include>
418
+ </context>
419
+
420
+ <context id="subsubsection" style-inside="true" style-ref="subsubsection" end-at-line-end="true">
421
+ <start>(\\subsubsection\*?)\{</start>
422
+ <end>\}</end>
423
+ <include>
424
+ <context sub-pattern="1" where="start" style-ref="common-commands"/>
425
+ <context ref="curly-braces-pair"/>
426
+ <context ref="latex"/>
427
+ </include>
428
+ </context>
429
+
430
+ <context id="paragraph" style-inside="true" style-ref="paragraph" end-at-line-end="true">
431
+ <start>(\\paragraph\*?)\{</start>
432
+ <end>\}</end>
433
+ <include>
434
+ <context sub-pattern="1" where="start" style-ref="common-commands"/>
435
+ <context ref="curly-braces-pair"/>
436
+ <context ref="latex"/>
437
+ </include>
438
+ </context>
439
+
440
+ <context id="subparagraph" style-inside="true" style-ref="subparagraph" end-at-line-end="true">
441
+ <start>(\\subparagraph\*?)\{</start>
442
+ <end>\}</end>
443
+ <include>
444
+ <context sub-pattern="1" where="start" style-ref="common-commands"/>
445
+ <context ref="curly-braces-pair"/>
446
+ <context ref="latex"/>
447
+ </include>
448
+ </context>
205
449
  </include>
206
450
  </context>
207
451
 
208
- <context id="verbatim-comment" style-ref="comment" class="no-spell-check">
209
- <start>\\begin\{comment\}</start>
210
- <end>\\end\{comment\}</end>
452
+ <!-- math -->
453
+
454
+ <!-- Commands exclusive to math mode -->
455
+ <context id="math-command" class="no-spell-check" style-ref="common-commands">
456
+ <match extended="true">
457
+ \\(
458
+ frac | sqrt | sum | (co)?prod | o?int | #-Functions
459
+ infty | (c|d|v)dots | nonumber | #-special in math mode
460
+ mathnormal | math(rm|sf|tt|it|bf|cal) | #-Math font commands
461
+ (display|text|script(script)?)style | #-Math size commands
462
+ alpha | beta | (g|G)amma | (d|D)elta | #-Greek letters
463
+ (var)?epsilon | zeta | eta | ((vart)|t|T)heta | ##
464
+ iota | kappa | (l|L)ambda | mu | nu | (x|X)i | ##
465
+ ((varp)|p|P)i | (var)?rho | ((vars)|s|S)igma | ##
466
+ tau | (u|U)psilon | ((varp)|p|P)hi | chi | ##
467
+ (p|P)si | (o|O)mega | ##
468
+ pm | mp | times | div | cdot | ast | star | #-Binary operators
469
+ dd?agger | amalg | (sq)?c(a|u)p | uplus | vee | ##
470
+ wedge | o(plus|minus|times) | (big)?circ | ##
471
+ bullet | (d|D)iamond | (un)?(l|r)hd | ##
472
+ o(slash|dot) | Box | bigtriangle(up|down) | ##
473
+ triangle(left|right) | setminus | wr | ##
474
+ gets | to | ((u|U)p(down)? | (d|D)own)arrow | #-Arrows and pointers
475
+ ((l|L)eft(right)?|(r|R)ight)arrow | (long)mapsto |##
476
+ hook(left|right)arrow | (ne|se|sw|nw)arrow | ##
477
+ (left|right)harpoon(up|down) | rightleftharpoons |##
478
+ (l|L)ong(left(right)?|right)arrow | ##
479
+ (wide)hat | check | dd?ot | breve | acute | #-Accents in math mode
480
+ grave | bar | vec | (wide)tilde | mathring | ##
481
+ (over|under)(line|brace) | (i|j)math | ##i, j dots removed
482
+ (arc)?(cosh?|sinh?|tanh?) | arg | coth? | csc | #-Function names
483
+ deg | det | dim | exp | gcd | hom | inf | ker | ##
484
+ lg | lim(inf|sup)? | ln | log | max | min | Pr | ##
485
+ sec | sup ##
486
+ )(?=\b)
487
+ </match>
488
+ </context>
489
+
490
+ <context id="math-spacing" style-ref="special-char">
491
+ <match>\\[;:!]</match>
492
+ </context>
493
+
494
+ <context id="math-brackets" style-ref="common-commands">
495
+ <match extended="true">
496
+ \\(left | right | [bB]igg?[lr]) ( # bracket size specifier
497
+ \(|\) | \[|\] | \\\{|\\\} | # normal brackets (curly escaped)
498
+ \| | \\\| | / | \\backslash | # pipe and slashes
499
+ \\( #-symbol commands
500
+ [lr]floor | [lr]ceil | [lr]angle | ##
501
+ ([uU]p(down)?|[dD]own)arrow ##
502
+ ) ##
503
+ )
504
+ </match>
505
+ </context>
506
+
507
+ <context id="math-super-sub-script" style-ref="common-commands">
508
+ <match>\^|_</match>
509
+ </context>
510
+
511
+ <context id="in-math" class="no-spell-check">
211
512
  <include>
212
- <context ref="def:in-comment"/>
513
+ <context ref="comment"/>
514
+ <context ref="math-command"/>
515
+ <context ref="math-spacing"/>
516
+ <context ref="math-brackets"/>
517
+ <context ref="special-char"/>
518
+ <context ref="math-super-sub-script"/>
519
+ <context ref="generic-command"/>
213
520
  </include>
214
521
  </context>
215
522
 
@@ -217,8 +524,8 @@
217
524
  <start>\$\$</start>
218
525
  <end>\$\$</end>
219
526
  <include>
220
- <context sub-pattern="0" where="start" style-ref="math-bound"/>
221
- <context sub-pattern="0" where="end" style-ref="math-bound"/>
527
+ <context sub-pattern="0" where="start" style-ref="math-boundary"/>
528
+ <context sub-pattern="0" where="end" style-ref="math-boundary"/>
222
529
  <context ref="in-math"/>
223
530
  </include>
224
531
  </context>
@@ -227,8 +534,20 @@
227
534
  <start>\\\[</start>
228
535
  <end>\\\]</end>
229
536
  <include>
230
- <context sub-pattern="0" where="start" style-ref="math-bound"/>
231
- <context sub-pattern="0" where="end" style-ref="math-bound"/>
537
+ <context sub-pattern="0" where="start" style-ref="math-boundary"/>
538
+ <context sub-pattern="0" where="end" style-ref="math-boundary"/>
539
+ <context ref="in-math"/>
540
+ </include>
541
+ </context>
542
+
543
+ <context id="math-env" style-ref="math" class="no-spell-check">
544
+ <start>(\\begin)\{(math|displaymath|equation\*?|align\*?|eqnarray\*?)\}</start>
545
+ <end>(\\end)\{(\%{2@start})\}</end>
546
+ <include>
547
+ <context sub-pattern="1" where="start" style-ref="common-commands"/>
548
+ <context sub-pattern="2" where="start" style-ref="name"/>
549
+ <context sub-pattern="1" where="end" style-ref="common-commands"/>
550
+ <context sub-pattern="2" where="end" style-ref="name"/>
232
551
  <context ref="in-math"/>
233
552
  </include>
234
553
  </context>
@@ -237,9 +556,9 @@
237
556
  <start>\$</start>
238
557
  <end>\$</end>
239
558
  <include>
240
- <context sub-pattern="0" where="start" style-ref="math-bound"/>
241
- <context sub-pattern="0" where="end" style-ref="math-bound"/>
242
- <context ref="in-inline-math"/>
559
+ <context sub-pattern="0" where="start" style-ref="math-boundary"/>
560
+ <context sub-pattern="0" where="end" style-ref="math-boundary"/>
561
+ <context ref="in-math"/>
243
562
  </include>
244
563
  </context>
245
564
 
@@ -247,97 +566,34 @@
247
566
  <start>\\\(</start>
248
567
  <end>\\\)</end>
249
568
  <include>
250
- <context sub-pattern="0" where="start" style-ref="math-bound"/>
251
- <context sub-pattern="0" where="end" style-ref="math-bound"/>
252
- <context ref="in-inline-math"/>
569
+ <context sub-pattern="0" where="start" style-ref="math-boundary"/>
570
+ <context sub-pattern="0" where="end" style-ref="math-boundary"/>
571
+ <context ref="in-math"/>
253
572
  </include>
254
573
  </context>
255
574
 
256
- <context id="verbatim-env" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
257
- <start>(\\begin)\{(verbatim\*?|lstlisting|alltt)\}</start>
258
- <end>(\\end)\{\%{2@start}\}</end>
575
+ <context id="math">
259
576
  <include>
260
- <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
261
- <context sub-pattern="1" where="end" style-ref="common-commands" class="no-spell-check"/>
262
- </include>
263
- </context>
264
-
265
- <!--using brackets is an experimental feature from the listings package. The
266
- following must support these cases:
267
-
268
- \lstinline[]{code in here}
269
- \lstinline[key=val, key=val]{code in here}
270
- \lstinline[key=val, key=val]!code in here!
271
- \lstinline[]!code in here!
272
- \lstinline[][code in here[
273
- \lstinline[NOT code in here, must specify empty optional argument to use square brackets[
274
- \lstinline{code in here}
275
- \lstinline{code in {here} but NOT in here} % brackets do not nest
276
- \lstinline!code in here!
277
- \lstinline=code in here=
278
- \lstinline{this needs to fail{
279
-
280
- If using \verb instead of \lstinline, the brackets cannot be used
281
- -->
282
- <context id="lstinline-curly-brackets" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
283
- <start>(\\lstinline)(\[.*?\])?{</start>
284
- <end>}</end>
285
- <include>
286
- <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
287
- </include>
288
- </context>
289
- <context id="lstinline-square-brackets" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
290
- <!-- square brackets don't match with the pair, and they require an
291
- optional argument, even if empty -->
292
- <start>(\\lstinline)(\[.*?\])\[</start>
293
- <end>\[</end>
294
- <include>
295
- <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
296
- </include>
297
- </context>
298
- <context id="lstinline" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
299
- <start>(\\lstinline)(\[.*?\])?((?!\[)\S)</start> <!-- ignore when starting with [ -->
300
- <end>\%{3@start}</end>
301
- <include>
302
- <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
303
- </include>
304
- </context>
305
- <!-- If using \verb instead of \lstinline, the brackets cannot be used -->
306
- <context id="verbatim-inline" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
307
- <start>(\\verb)\*?(\S)</start>
308
- <end>\%{2@start}</end>
309
- <include>
310
- <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
577
+ <context ref="math-1"/>
578
+ <context ref="math-2"/>
579
+ <context ref="math-env"/>
580
+ <context ref="inline-math-1"/>
581
+ <context ref="inline-math-2"/>
311
582
  </include>
312
583
  </context>
313
584
 
314
-
315
- <context id="include" style-ref="include" class="no-spell-check">
316
- <prefix>\\</prefix>
317
-
318
- <keyword>input</keyword>
319
- <keyword>include</keyword>
320
- <keyword>includeonly</keyword>
321
- <keyword>usepackage</keyword>
322
- </context>
323
-
324
585
  <context id="latex">
325
586
  <include>
326
587
  <context ref="comment"/>
327
- <context ref="verbatim-comment"/>
328
- <context ref="math-1"/>
329
- <context ref="math-2"/>
330
- <context ref="inline-math-1"/>
331
- <context ref="inline-math-2"/>
332
- <context ref="verbatim-env"/>
333
- <context ref="lstinline-curly-brackets"/>
334
- <context ref="lstinline-square-brackets"/>
335
- <context ref="lstinline"/>
336
- <context ref="verbatim-inline"/>
588
+ <context ref="verbatim"/>
589
+ <context ref="R-block"/>
590
+ <context ref="headings"/>
591
+ <context ref="math"/>
592
+ <context ref="specific-commands"/>
337
593
  <context ref="include"/>
338
594
  <context ref="common-commands"/>
339
- <context ref="specials-symbol"/>
340
- <context ref="command"/>
595
+ <context ref="special-char"/>
596
+ <context ref="generic-command"/>
341
597
  </include>
342
598
  </context>
343
599
  </definitions>