pygments.rb 0.5.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +3 -0
  4. data/lexers +0 -0
  5. data/lib/pygments/popen.rb +3 -2
  6. data/lib/pygments/version.rb +1 -1
  7. data/pygments.rb.gemspec +2 -1
  8. data/vendor/pygments-main/AUTHORS +20 -1
  9. data/vendor/pygments-main/CHANGES +55 -3
  10. data/vendor/pygments-main/LICENSE +1 -1
  11. data/vendor/pygments-main/MANIFEST.in +1 -1
  12. data/vendor/pygments-main/Makefile +5 -8
  13. data/vendor/pygments-main/REVISION +1 -1
  14. data/vendor/pygments-main/doc/Makefile +153 -0
  15. data/vendor/pygments-main/doc/_static/favicon.ico +0 -0
  16. data/vendor/pygments-main/doc/_static/logo_new.png +0 -0
  17. data/vendor/pygments-main/doc/_static/logo_only.png +0 -0
  18. data/vendor/pygments-main/doc/_templates/docssidebar.html +3 -0
  19. data/vendor/pygments-main/doc/_templates/indexsidebar.html +25 -0
  20. data/vendor/pygments-main/doc/_themes/pygments14/layout.html +98 -0
  21. data/vendor/pygments-main/doc/_themes/pygments14/static/bodybg.png +0 -0
  22. data/vendor/pygments-main/doc/_themes/pygments14/static/docbg.png +0 -0
  23. data/vendor/pygments-main/doc/_themes/pygments14/static/listitem.png +0 -0
  24. data/vendor/pygments-main/doc/_themes/pygments14/static/logo.png +0 -0
  25. data/vendor/pygments-main/doc/_themes/pygments14/static/pocoo.png +0 -0
  26. data/vendor/pygments-main/doc/_themes/pygments14/static/pygments14.css_t +401 -0
  27. data/vendor/pygments-main/doc/_themes/pygments14/theme.conf +15 -0
  28. data/vendor/pygments-main/doc/conf.py +249 -0
  29. data/vendor/pygments-main/doc/docs/api.rst +316 -0
  30. data/vendor/pygments-main/doc/docs/authors.rst +4 -0
  31. data/vendor/pygments-main/doc/docs/changelog.rst +1 -0
  32. data/vendor/pygments-main/{docs/src/cmdline.txt → doc/docs/cmdline.rst} +9 -11
  33. data/vendor/pygments-main/{docs/src/filterdevelopment.txt → doc/docs/filterdevelopment.rst} +1 -1
  34. data/vendor/pygments-main/{docs/src/filters.txt → doc/docs/filters.rst} +4 -5
  35. data/vendor/pygments-main/{docs/src/formatterdevelopment.txt → doc/docs/formatterdevelopment.rst} +1 -1
  36. data/vendor/pygments-main/{docs/src/formatters.txt → doc/docs/formatters.rst} +6 -6
  37. data/vendor/pygments-main/doc/docs/index.rst +66 -0
  38. data/vendor/pygments-main/{docs/src/integrate.txt → doc/docs/integrate.rst} +3 -7
  39. data/vendor/pygments-main/{docs/src/java.txt → doc/docs/java.rst} +0 -0
  40. data/vendor/pygments-main/{docs/src/lexerdevelopment.txt → doc/docs/lexerdevelopment.rst} +13 -14
  41. data/vendor/pygments-main/{docs/src/lexers.txt → doc/docs/lexers.rst} +7 -5
  42. data/vendor/pygments-main/{docs/src/moinmoin.txt → doc/docs/moinmoin.rst} +0 -0
  43. data/vendor/pygments-main/{docs/src/plugins.txt → doc/docs/plugins.rst} +0 -0
  44. data/vendor/pygments-main/{docs/src/quickstart.txt → doc/docs/quickstart.rst} +22 -19
  45. data/vendor/pygments-main/{docs/src/rstdirective.txt → doc/docs/rstdirective.rst} +0 -0
  46. data/vendor/pygments-main/{docs/src/styles.txt → doc/docs/styles.rst} +2 -2
  47. data/vendor/pygments-main/{docs/src/tokens.txt → doc/docs/tokens.rst} +10 -7
  48. data/vendor/pygments-main/{docs/src/unicode.txt → doc/docs/unicode.rst} +8 -7
  49. data/vendor/pygments-main/doc/download.rst +41 -0
  50. data/vendor/pygments-main/doc/faq.rst +143 -0
  51. data/vendor/pygments-main/doc/index.rst +53 -0
  52. data/vendor/pygments-main/doc/languages.rst +151 -0
  53. data/vendor/pygments-main/doc/make.bat +190 -0
  54. data/vendor/pygments-main/{docs → doc}/pygmentize.1 +0 -0
  55. data/vendor/pygments-main/external/autopygmentize +65 -48
  56. data/vendor/pygments-main/external/markdown-processor.py +15 -15
  57. data/vendor/pygments-main/external/moin-parser.py +1 -1
  58. data/vendor/pygments-main/external/rst-directive.py +2 -3
  59. data/vendor/pygments-main/ez_setup.py +340 -234
  60. data/vendor/pygments-main/pygments/__init__.py +4 -4
  61. data/vendor/pygments-main/pygments/cmdline.py +81 -68
  62. data/vendor/pygments-main/pygments/console.py +1 -1
  63. data/vendor/pygments-main/pygments/filter.py +1 -1
  64. data/vendor/pygments-main/pygments/filters/__init__.py +11 -9
  65. data/vendor/pygments-main/pygments/formatter.py +3 -3
  66. data/vendor/pygments-main/pygments/formatters/__init__.py +5 -3
  67. data/vendor/pygments-main/pygments/formatters/_mapping.py +16 -5
  68. data/vendor/pygments-main/pygments/formatters/bbcode.py +1 -1
  69. data/vendor/pygments-main/pygments/formatters/html.py +44 -26
  70. data/vendor/pygments-main/pygments/formatters/img.py +21 -14
  71. data/vendor/pygments-main/pygments/formatters/latex.py +104 -12
  72. data/vendor/pygments-main/pygments/formatters/other.py +53 -6
  73. data/vendor/pygments-main/pygments/formatters/rtf.py +30 -16
  74. data/vendor/pygments-main/pygments/formatters/svg.py +2 -2
  75. data/vendor/pygments-main/pygments/formatters/terminal.py +41 -1
  76. data/vendor/pygments-main/pygments/formatters/terminal256.py +2 -2
  77. data/vendor/pygments-main/pygments/lexer.py +59 -39
  78. data/vendor/pygments-main/pygments/lexers/__init__.py +38 -15
  79. data/vendor/pygments-main/pygments/lexers/_asybuiltins.py +1 -1
  80. data/vendor/pygments-main/pygments/lexers/_clbuiltins.py +15 -15
  81. data/vendor/pygments-main/pygments/lexers/_cocoabuiltins.py +73 -0
  82. data/vendor/pygments-main/pygments/lexers/_lassobuiltins.py +11 -1
  83. data/vendor/pygments-main/pygments/lexers/_luabuiltins.py +14 -8
  84. data/vendor/pygments-main/pygments/lexers/_mapping.py +81 -30
  85. data/vendor/pygments-main/pygments/lexers/_openedgebuiltins.py +1 -1
  86. data/vendor/pygments-main/pygments/lexers/_phpbuiltins.py +1067 -95
  87. data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +7 -7
  88. data/vendor/pygments-main/pygments/lexers/_robotframeworklexer.py +5 -4
  89. data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +1 -1
  90. data/vendor/pygments-main/pygments/lexers/_sourcemodbuiltins.py +12 -7
  91. data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +112 -18
  92. data/vendor/pygments-main/pygments/lexers/_vimbuiltins.py +1 -1
  93. data/vendor/pygments-main/pygments/lexers/agile.py +644 -382
  94. data/vendor/pygments-main/pygments/lexers/asm.py +66 -29
  95. data/vendor/pygments-main/pygments/lexers/compiled.py +1643 -174
  96. data/vendor/pygments-main/pygments/lexers/dalvik.py +27 -6
  97. data/vendor/pygments-main/pygments/lexers/dotnet.py +45 -33
  98. data/vendor/pygments-main/pygments/lexers/foxpro.py +3 -3
  99. data/vendor/pygments-main/pygments/lexers/functional.py +1510 -570
  100. data/vendor/pygments-main/pygments/lexers/graph.py +81 -0
  101. data/vendor/pygments-main/pygments/lexers/hdl.py +29 -30
  102. data/vendor/pygments-main/pygments/lexers/inferno.py +96 -0
  103. data/vendor/pygments-main/pygments/lexers/jvm.py +622 -207
  104. data/vendor/pygments-main/pygments/lexers/math.py +438 -70
  105. data/vendor/pygments-main/pygments/lexers/other.py +885 -171
  106. data/vendor/pygments-main/pygments/lexers/parsers.py +24 -24
  107. data/vendor/pygments-main/pygments/lexers/qbasic.py +157 -0
  108. data/vendor/pygments-main/pygments/lexers/rdf.py +99 -0
  109. data/vendor/pygments-main/pygments/lexers/shell.py +28 -25
  110. data/vendor/pygments-main/pygments/lexers/special.py +7 -8
  111. data/vendor/pygments-main/pygments/lexers/sql.py +56 -23
  112. data/vendor/pygments-main/pygments/lexers/templates.py +377 -59
  113. data/vendor/pygments-main/pygments/lexers/text.py +208 -46
  114. data/vendor/pygments-main/pygments/lexers/web.py +729 -264
  115. data/vendor/pygments-main/pygments/modeline.py +1 -1
  116. data/vendor/pygments-main/pygments/plugin.py +1 -1
  117. data/vendor/pygments-main/pygments/scanner.py +1 -1
  118. data/vendor/pygments-main/pygments/sphinxext.py +153 -0
  119. data/vendor/pygments-main/pygments/style.py +3 -2
  120. data/vendor/pygments-main/pygments/styles/__init__.py +5 -1
  121. data/vendor/pygments-main/pygments/styles/autumn.py +1 -1
  122. data/vendor/pygments-main/pygments/styles/borland.py +1 -1
  123. data/vendor/pygments-main/pygments/styles/bw.py +1 -1
  124. data/vendor/pygments-main/pygments/styles/colorful.py +1 -1
  125. data/vendor/pygments-main/pygments/styles/default.py +1 -1
  126. data/vendor/pygments-main/pygments/styles/emacs.py +1 -1
  127. data/vendor/pygments-main/pygments/styles/friendly.py +1 -1
  128. data/vendor/pygments-main/pygments/styles/fruity.py +1 -1
  129. data/vendor/pygments-main/pygments/styles/igor.py +29 -0
  130. data/vendor/pygments-main/pygments/styles/manni.py +1 -1
  131. data/vendor/pygments-main/pygments/styles/monokai.py +4 -4
  132. data/vendor/pygments-main/pygments/styles/murphy.py +1 -1
  133. data/vendor/pygments-main/pygments/styles/native.py +1 -1
  134. data/vendor/pygments-main/pygments/styles/paraiso_dark.py +125 -0
  135. data/vendor/pygments-main/pygments/styles/paraiso_light.py +125 -0
  136. data/vendor/pygments-main/pygments/styles/pastie.py +1 -1
  137. data/vendor/pygments-main/pygments/styles/perldoc.py +1 -1
  138. data/vendor/pygments-main/pygments/styles/rrt.py +1 -1
  139. data/vendor/pygments-main/pygments/styles/tango.py +1 -1
  140. data/vendor/pygments-main/pygments/styles/trac.py +1 -1
  141. data/vendor/pygments-main/pygments/styles/vim.py +1 -1
  142. data/vendor/pygments-main/pygments/styles/vs.py +1 -1
  143. data/vendor/pygments-main/pygments/styles/xcode.py +51 -0
  144. data/vendor/pygments-main/pygments/token.py +4 -1
  145. data/vendor/pygments-main/pygments/unistring.py +6 -5
  146. data/vendor/pygments-main/pygments/util.py +35 -21
  147. data/vendor/pygments-main/scripts/check_sources.py +28 -44
  148. data/vendor/pygments-main/scripts/detect_missing_analyse_text.py +5 -4
  149. data/vendor/pygments-main/scripts/find_codetags.py +27 -19
  150. data/vendor/pygments-main/scripts/find_error.py +16 -13
  151. data/vendor/pygments-main/scripts/get_vimkw.py +3 -3
  152. data/vendor/pygments-main/scripts/vim2pygments.py +9 -7
  153. data/vendor/pygments-main/setup.py +19 -19
  154. data/vendor/pygments-main/tests/examplefiles/99_bottles_of_beer.chpl +118 -0
  155. data/vendor/pygments-main/tests/examplefiles/Error.pmod +38 -0
  156. data/vendor/pygments-main/tests/examplefiles/FakeFile.pike +360 -0
  157. data/vendor/pygments-main/tests/examplefiles/{ANTLRv3.g → antlr_ANTLRv3.g} +0 -0
  158. data/vendor/pygments-main/tests/examplefiles/clojure-weird-keywords.clj +5 -0
  159. data/vendor/pygments-main/tests/examplefiles/core.cljs +52 -0
  160. data/vendor/pygments-main/tests/examplefiles/demo.cfm +13 -1
  161. data/vendor/pygments-main/tests/examplefiles/demo.hbs +12 -0
  162. data/vendor/pygments-main/tests/examplefiles/ember.handlebars +33 -0
  163. data/vendor/pygments-main/tests/examplefiles/example.als +217 -0
  164. data/vendor/pygments-main/tests/examplefiles/example.c +1 -1
  165. data/vendor/pygments-main/tests/examplefiles/example.chai +6 -0
  166. data/vendor/pygments-main/tests/examplefiles/example.coffee +27 -0
  167. data/vendor/pygments-main/tests/examplefiles/example.e +124 -0
  168. data/vendor/pygments-main/tests/examplefiles/example.f90 +8 -0
  169. data/vendor/pygments-main/tests/examplefiles/example.feature +16 -0
  170. data/vendor/pygments-main/tests/examplefiles/example.gd +23 -0
  171. data/vendor/pygments-main/tests/examplefiles/example.gi +64 -0
  172. data/vendor/pygments-main/tests/examplefiles/example.groovy +2 -0
  173. data/vendor/pygments-main/tests/examplefiles/example.hs +27 -0
  174. data/vendor/pygments-main/tests/examplefiles/example.hx +44 -1
  175. data/vendor/pygments-main/tests/examplefiles/example.i6t +32 -0
  176. data/vendor/pygments-main/tests/examplefiles/example.i7x +45 -0
  177. data/vendor/pygments-main/tests/examplefiles/example.inf +374 -0
  178. data/vendor/pygments-main/tests/examplefiles/example.j +564 -0
  179. data/vendor/pygments-main/tests/examplefiles/example.java +16 -0
  180. data/vendor/pygments-main/tests/examplefiles/example.kal +75 -0
  181. data/vendor/pygments-main/tests/examplefiles/example.liquid +42 -0
  182. data/vendor/pygments-main/tests/examplefiles/example.ma +8 -0
  183. data/vendor/pygments-main/tests/examplefiles/example.mq4 +187 -0
  184. data/vendor/pygments-main/tests/examplefiles/example.mqh +123 -0
  185. data/vendor/pygments-main/tests/examplefiles/example.ni +57 -0
  186. data/vendor/pygments-main/tests/examplefiles/example.nix +80 -0
  187. data/vendor/pygments-main/tests/examplefiles/example.pp +8 -0
  188. data/vendor/pygments-main/tests/examplefiles/example.red +257 -0
  189. data/vendor/pygments-main/tests/examplefiles/example.reds +150 -0
  190. data/vendor/pygments-main/tests/examplefiles/example.rkt +677 -29
  191. data/vendor/pygments-main/tests/examplefiles/example.sh +22 -0
  192. data/vendor/pygments-main/tests/examplefiles/example.slim +31 -0
  193. data/vendor/pygments-main/tests/examplefiles/example.sls +51 -0
  194. data/vendor/pygments-main/tests/examplefiles/example.stan +2 -0
  195. data/vendor/pygments-main/tests/examplefiles/example.todotxt +9 -0
  196. data/vendor/pygments-main/tests/examplefiles/exampleScript.cfc +241 -0
  197. data/vendor/pygments-main/tests/examplefiles/exampleTag.cfc +18 -0
  198. data/vendor/pygments-main/tests/examplefiles/example_elixir.ex +192 -350
  199. data/vendor/pygments-main/tests/examplefiles/hash_syntax.rb +5 -0
  200. data/vendor/pygments-main/tests/examplefiles/hello.at +6 -0
  201. data/vendor/pygments-main/tests/examplefiles/hello.golo +5 -0
  202. data/vendor/pygments-main/tests/examplefiles/hello.lsl +12 -0
  203. data/vendor/pygments-main/tests/examplefiles/{File.hy → hybris_File.hy} +0 -0
  204. data/vendor/pygments-main/tests/examplefiles/{mg_sample.pro → idl_sample.pro} +0 -0
  205. data/vendor/pygments-main/tests/examplefiles/iex_example +23 -0
  206. data/vendor/pygments-main/tests/examplefiles/inet_pton6.dg +24 -24
  207. data/vendor/pygments-main/tests/examplefiles/language.hy +165 -0
  208. data/vendor/pygments-main/tests/examplefiles/limbo.b +456 -0
  209. data/vendor/pygments-main/tests/examplefiles/livescript-demo.ls +3 -1
  210. data/vendor/pygments-main/tests/examplefiles/main.cmake +2 -0
  211. data/vendor/pygments-main/tests/examplefiles/objc_example.m +163 -16
  212. data/vendor/pygments-main/tests/examplefiles/{example.p → openedge_example} +0 -0
  213. data/vendor/pygments-main/tests/examplefiles/pawn_example +25 -0
  214. data/vendor/pygments-main/tests/examplefiles/qbasic_example +2 -0
  215. data/vendor/pygments-main/tests/examplefiles/r6rs-comments.scm +23 -0
  216. data/vendor/pygments-main/tests/examplefiles/{robotframework.txt → robotframework_test.txt} +0 -0
  217. data/vendor/pygments-main/tests/examplefiles/rql-queries.rql +34 -0
  218. data/vendor/pygments-main/tests/examplefiles/scope.cirru +43 -0
  219. data/vendor/pygments-main/tests/examplefiles/sparql.rq +23 -0
  220. data/vendor/pygments-main/tests/examplefiles/test.R +37 -5
  221. data/vendor/pygments-main/tests/examplefiles/test.apl +26 -0
  222. data/vendor/pygments-main/tests/examplefiles/test.cyp +123 -0
  223. data/vendor/pygments-main/tests/examplefiles/test.idr +93 -0
  224. data/vendor/pygments-main/tests/examplefiles/test.mask +41 -0
  225. data/vendor/pygments-main/tests/examplefiles/test.pan +54 -0
  226. data/vendor/pygments-main/tests/examplefiles/test.php +3 -1
  227. data/vendor/pygments-main/tests/examplefiles/test.pig +148 -0
  228. data/vendor/pygments-main/tests/examplefiles/test.pwn +253 -0
  229. data/vendor/pygments-main/tests/examplefiles/test.r3 +27 -7
  230. data/vendor/pygments-main/tests/examplefiles/test.rsl +111 -0
  231. data/vendor/pygments-main/tests/examplefiles/test.swift +65 -0
  232. data/vendor/pygments-main/tests/examplefiles/test.zep +33 -0
  233. data/vendor/pygments-main/tests/examplefiles/unicode.go +10 -0
  234. data/vendor/pygments-main/tests/examplefiles/{test.bas → vbnet_test.bas} +0 -0
  235. data/vendor/pygments-main/tests/examplefiles/vctreestatus_hg +4 -0
  236. data/vendor/pygments-main/tests/examplefiles/vimrc +21 -0
  237. data/vendor/pygments-main/tests/run.py +14 -19
  238. data/vendor/pygments-main/tests/string_asserts.py +22 -0
  239. data/vendor/pygments-main/tests/test_basic_api.py +28 -14
  240. data/vendor/pygments-main/tests/test_cfm.py +46 -0
  241. data/vendor/pygments-main/tests/test_clexer.py +208 -3
  242. data/vendor/pygments-main/tests/test_cmdline.py +6 -5
  243. data/vendor/pygments-main/tests/test_examplefiles.py +30 -19
  244. data/vendor/pygments-main/tests/test_html_formatter.py +15 -13
  245. data/vendor/pygments-main/tests/test_latex_formatter.py +4 -2
  246. data/vendor/pygments-main/tests/test_lexers_other.py +11 -11
  247. data/vendor/pygments-main/tests/test_objectiveclexer.py +81 -0
  248. data/vendor/pygments-main/tests/test_perllexer.py +1 -1
  249. data/vendor/pygments-main/tests/test_qbasiclexer.py +43 -0
  250. data/vendor/pygments-main/tests/test_regexlexer.py +8 -1
  251. data/vendor/pygments-main/tests/test_rtf_formatter.py +109 -0
  252. data/vendor/pygments-main/tests/test_string_asserts.py +39 -0
  253. data/vendor/pygments-main/tests/test_token.py +3 -3
  254. data/vendor/pygments-main/tests/test_using_api.py +1 -1
  255. data/vendor/pygments-main/tests/test_util.py +1 -1
  256. metadata +138 -51
  257. data/vendor/pygments-main/docs/generate.py +0 -472
  258. data/vendor/pygments-main/docs/src/api.txt +0 -270
  259. data/vendor/pygments-main/docs/src/authors.txt +0 -5
  260. data/vendor/pygments-main/docs/src/changelog.txt +0 -5
  261. data/vendor/pygments-main/docs/src/index.txt +0 -69
  262. data/vendor/pygments-main/docs/src/installation.txt +0 -71
  263. data/vendor/pygments-main/external/rst-directive-old.py +0 -77
  264. data/vendor/pygments-main/scripts/reindent.py +0 -291
  265. data/vendor/pygments-main/tests/examplefiles/import.hs +0 -4
  266. data/vendor/pygments-main/tests/examplefiles/objc_example2.m +0 -24
  267. data/vendor/pygments-main/tests/old_run.py +0 -138
@@ -0,0 +1,109 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Pygments RTF formatter tests
4
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
+
6
+ :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
7
+ :license: BSD, see LICENSE for details.
8
+ """
9
+
10
+ import unittest
11
+ from string_asserts import StringTests
12
+
13
+ from pygments.util import StringIO
14
+ from pygments.formatters import RtfFormatter
15
+ from pygments.lexers.special import TextLexer
16
+
17
+ class RtfFormatterTest(StringTests, unittest.TestCase):
18
+ foot = (r'\par' '\n' r'}')
19
+
20
+ def _escape(self, string):
21
+ return(string.replace("\n", r"\n"))
22
+
23
+ def _build_message(self, *args, **kwargs):
24
+ string = kwargs.get('string', None)
25
+ t = self._escape(kwargs.get('t', ''))
26
+ expected = self._escape(kwargs.get('expected', ''))
27
+ result = self._escape(kwargs.get('result', ''))
28
+
29
+ if string is None:
30
+ string = (u"The expected output of '{t}'\n"
31
+ u"\t\tShould be '{expected}'\n"
32
+ u"\t\tActually outputs '{result}'\n"
33
+ u"\t(WARNING: Partial Output of Result!)")
34
+
35
+ end = -(len(self._escape(self.foot)))
36
+ start = end-len(expected)
37
+
38
+ return string.format(t=t,
39
+ result = result[start:end],
40
+ expected = expected)
41
+
42
+ def format_rtf(self, t):
43
+ tokensource = list(TextLexer().get_tokens(t))
44
+ fmt = RtfFormatter()
45
+ buf = StringIO()
46
+ fmt.format(tokensource, buf)
47
+ result = buf.getvalue()
48
+ buf.close()
49
+ return result
50
+
51
+ def test_rtf_header(self):
52
+ t = u''
53
+ result = self.format_rtf(t)
54
+ expected = r'{\rtf1\ansi\uc0'
55
+ msg = (u"RTF documents are expected to start with '{expected}'\n"
56
+ u"\t\tStarts intead with '{result}'\n"
57
+ u"\t(WARNING: Partial Output of Result!)".format(
58
+ expected = expected,
59
+ result = result[:len(expected)]))
60
+ self.assertStartsWith(result, expected, msg)
61
+
62
+ def test_rtf_footer(self):
63
+ t = u''
64
+ result = self.format_rtf(t)
65
+ expected = self.foot
66
+ msg = (u"RTF documents are expected to end with '{expected}'\n"
67
+ u"\t\tEnds intead with '{result}'\n"
68
+ u"\t(WARNING: Partial Output of Result!)".format(
69
+ expected = self._escape(expected),
70
+ result = self._escape(result[-len(expected):])))
71
+ self.assertEndsWith(result, expected, msg)
72
+
73
+ def test_ascii_characters(self):
74
+ t = u'a b c d ~'
75
+ result = self.format_rtf(t)
76
+ expected = (r'a b c d ~')
77
+ if not result.endswith(self.foot):
78
+ return(unittest.skip('RTF Footer incorrect'))
79
+ msg = self._build_message(t=t, result=result, expected=expected)
80
+ self.assertEndsWith(result, expected+self.foot, msg)
81
+
82
+ def test_escape_characters(self):
83
+ t = u'\ {{'
84
+ result = self.format_rtf(t)
85
+ expected = (r'\\ \{\{')
86
+ if not result.endswith(self.foot):
87
+ return(unittest.skip('RTF Footer incorrect'))
88
+ msg = self._build_message(t=t, result=result, expected=expected)
89
+ self.assertEndsWith(result, expected+self.foot, msg)
90
+
91
+ def test_single_characters(self):
92
+ t = u'â € ¤ каждой'
93
+ result = self.format_rtf(t)
94
+ expected = (r'{\u226} {\u8364} {\u164} '
95
+ r'{\u1082}{\u1072}{\u1078}{\u1076}{\u1086}{\u1081}')
96
+ if not result.endswith(self.foot):
97
+ return(unittest.skip('RTF Footer incorrect'))
98
+ msg = self._build_message(t=t, result=result, expected=expected)
99
+ self.assertEndsWith(result, expected+self.foot, msg)
100
+
101
+ def test_double_characters(self):
102
+ t = u'က 힣 ↕ ↕︎ 鼖'
103
+ result = self.format_rtf(t)
104
+ expected = (r'{\u4096} {\u55203} {\u8597} '
105
+ r'{\u8597}{\u65038} {\u55422}{\u56859}')
106
+ if not result.endswith(self.foot):
107
+ return(unittest.skip('RTF Footer incorrect'))
108
+ msg = self._build_message(t=t, result=result, expected=expected)
109
+ self.assertEndsWith(result, expected+self.foot, msg)
@@ -0,0 +1,39 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Pygments string assert utility tests
4
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
+
6
+ :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
7
+ :license: BSD, see LICENSE for details.
8
+ """
9
+
10
+ import unittest
11
+ from string_asserts import StringTests
12
+
13
+ class TestStringTests(StringTests, unittest.TestCase):
14
+
15
+ def test_startswith_correct(self):
16
+ self.assertStartsWith("AAA", "A")
17
+
18
+ # @unittest.expectedFailure not supported by nose
19
+ def test_startswith_incorrect(self):
20
+ with self.assertRaises(AssertionError):
21
+ self.assertStartsWith("AAA", "B")
22
+
23
+ # @unittest.expectedFailure not supported by nose
24
+ def test_startswith_short(self):
25
+ with self.assertRaises(AssertionError):
26
+ self.assertStartsWith("A", "AA")
27
+
28
+ def test_endswith_correct(self):
29
+ self.assertEndsWith("AAA", "A")
30
+
31
+ # @unittest.expectedFailure not supported by nose
32
+ def test_endswith_incorrect(self):
33
+ with self.assertRaises(AssertionError):
34
+ self.assertEndsWith("AAA", "B")
35
+
36
+ # @unittest.expectedFailure not supported by nose
37
+ def test_endswith_short(self):
38
+ with self.assertRaises(AssertionError):
39
+ self.assertEndsWith("A", "AA")
@@ -3,7 +3,7 @@
3
3
  Test suite for the token module
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -36,11 +36,11 @@ class TokenTest(unittest.TestCase):
36
36
  stp = token.STANDARD_TYPES.copy()
37
37
  stp[token.Token] = '---' # Token and Text do conflict, that is okay
38
38
  t = {}
39
- for k, v in stp.iteritems():
39
+ for k, v in stp.items():
40
40
  t.setdefault(v, []).append(k)
41
41
  if len(t) == len(stp):
42
42
  return # Okay
43
43
 
44
- for k, v in t.iteritems():
44
+ for k, v in t.items():
45
45
  if len(v) > 1:
46
46
  self.fail("%r has more than one key: %r" % (k, v))
@@ -3,7 +3,7 @@
3
3
  Pygments tests for using()
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -3,7 +3,7 @@
3
3
  Test suite for the util module
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pygments.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
5
- prerelease:
4
+ version: 0.6.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Aman Gupta
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-11-03 00:00:00.000000000 Z
12
+ date: 2014-06-10 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: yajl-ruby
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
@@ -31,7 +28,6 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: posix-spawn
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ~>
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ~>
45
40
  - !ruby/object:Gem::Version
@@ -47,7 +42,6 @@ dependencies:
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: rake-compiler
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ~>
53
47
  - !ruby/object:Gem::Version
@@ -55,7 +49,6 @@ dependencies:
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ~>
61
54
  - !ruby/object:Gem::Version
@@ -94,35 +87,52 @@ files:
94
87
  - vendor/pygments-main/Makefile
95
88
  - vendor/pygments-main/REVISION
96
89
  - vendor/pygments-main/TODO
97
- - vendor/pygments-main/docs/generate.py
98
- - vendor/pygments-main/docs/pygmentize.1
99
- - vendor/pygments-main/docs/src/api.txt
100
- - vendor/pygments-main/docs/src/authors.txt
101
- - vendor/pygments-main/docs/src/changelog.txt
102
- - vendor/pygments-main/docs/src/cmdline.txt
103
- - vendor/pygments-main/docs/src/filterdevelopment.txt
104
- - vendor/pygments-main/docs/src/filters.txt
105
- - vendor/pygments-main/docs/src/formatterdevelopment.txt
106
- - vendor/pygments-main/docs/src/formatters.txt
107
- - vendor/pygments-main/docs/src/index.txt
108
- - vendor/pygments-main/docs/src/installation.txt
109
- - vendor/pygments-main/docs/src/integrate.txt
110
- - vendor/pygments-main/docs/src/java.txt
111
- - vendor/pygments-main/docs/src/lexerdevelopment.txt
112
- - vendor/pygments-main/docs/src/lexers.txt
113
- - vendor/pygments-main/docs/src/moinmoin.txt
114
- - vendor/pygments-main/docs/src/plugins.txt
115
- - vendor/pygments-main/docs/src/quickstart.txt
116
- - vendor/pygments-main/docs/src/rstdirective.txt
117
- - vendor/pygments-main/docs/src/styles.txt
118
- - vendor/pygments-main/docs/src/tokens.txt
119
- - vendor/pygments-main/docs/src/unicode.txt
90
+ - vendor/pygments-main/doc/Makefile
91
+ - vendor/pygments-main/doc/_static/favicon.ico
92
+ - vendor/pygments-main/doc/_static/logo_new.png
93
+ - vendor/pygments-main/doc/_static/logo_only.png
94
+ - vendor/pygments-main/doc/_templates/docssidebar.html
95
+ - vendor/pygments-main/doc/_templates/indexsidebar.html
96
+ - vendor/pygments-main/doc/_themes/pygments14/layout.html
97
+ - vendor/pygments-main/doc/_themes/pygments14/static/bodybg.png
98
+ - vendor/pygments-main/doc/_themes/pygments14/static/docbg.png
99
+ - vendor/pygments-main/doc/_themes/pygments14/static/listitem.png
100
+ - vendor/pygments-main/doc/_themes/pygments14/static/logo.png
101
+ - vendor/pygments-main/doc/_themes/pygments14/static/pocoo.png
102
+ - vendor/pygments-main/doc/_themes/pygments14/static/pygments14.css_t
103
+ - vendor/pygments-main/doc/_themes/pygments14/theme.conf
104
+ - vendor/pygments-main/doc/conf.py
105
+ - vendor/pygments-main/doc/docs/api.rst
106
+ - vendor/pygments-main/doc/docs/authors.rst
107
+ - vendor/pygments-main/doc/docs/changelog.rst
108
+ - vendor/pygments-main/doc/docs/cmdline.rst
109
+ - vendor/pygments-main/doc/docs/filterdevelopment.rst
110
+ - vendor/pygments-main/doc/docs/filters.rst
111
+ - vendor/pygments-main/doc/docs/formatterdevelopment.rst
112
+ - vendor/pygments-main/doc/docs/formatters.rst
113
+ - vendor/pygments-main/doc/docs/index.rst
114
+ - vendor/pygments-main/doc/docs/integrate.rst
115
+ - vendor/pygments-main/doc/docs/java.rst
116
+ - vendor/pygments-main/doc/docs/lexerdevelopment.rst
117
+ - vendor/pygments-main/doc/docs/lexers.rst
118
+ - vendor/pygments-main/doc/docs/moinmoin.rst
119
+ - vendor/pygments-main/doc/docs/plugins.rst
120
+ - vendor/pygments-main/doc/docs/quickstart.rst
121
+ - vendor/pygments-main/doc/docs/rstdirective.rst
122
+ - vendor/pygments-main/doc/docs/styles.rst
123
+ - vendor/pygments-main/doc/docs/tokens.rst
124
+ - vendor/pygments-main/doc/docs/unicode.rst
125
+ - vendor/pygments-main/doc/download.rst
126
+ - vendor/pygments-main/doc/faq.rst
127
+ - vendor/pygments-main/doc/index.rst
128
+ - vendor/pygments-main/doc/languages.rst
129
+ - vendor/pygments-main/doc/make.bat
130
+ - vendor/pygments-main/doc/pygmentize.1
120
131
  - vendor/pygments-main/external/autopygmentize
121
132
  - vendor/pygments-main/external/lasso-builtins-generator-9.lasso
122
133
  - vendor/pygments-main/external/markdown-processor.py
123
134
  - vendor/pygments-main/external/moin-parser.py
124
135
  - vendor/pygments-main/external/pygments.bashcomp
125
- - vendor/pygments-main/external/rst-directive-old.py
126
136
  - vendor/pygments-main/external/rst-directive.py
127
137
  - vendor/pygments-main/ez_setup.py
128
138
  - vendor/pygments-main/pygmentize
@@ -147,6 +157,7 @@ files:
147
157
  - vendor/pygments-main/pygments/lexers/__init__.py
148
158
  - vendor/pygments-main/pygments/lexers/_asybuiltins.py
149
159
  - vendor/pygments-main/pygments/lexers/_clbuiltins.py
160
+ - vendor/pygments-main/pygments/lexers/_cocoabuiltins.py
150
161
  - vendor/pygments-main/pygments/lexers/_lassobuiltins.py
151
162
  - vendor/pygments-main/pygments/lexers/_luabuiltins.py
152
163
  - vendor/pygments-main/pygments/lexers/_mapping.py
@@ -166,11 +177,15 @@ files:
166
177
  - vendor/pygments-main/pygments/lexers/foxpro.py
167
178
  - vendor/pygments-main/pygments/lexers/functional.py
168
179
  - vendor/pygments-main/pygments/lexers/github.py
180
+ - vendor/pygments-main/pygments/lexers/graph.py
169
181
  - vendor/pygments-main/pygments/lexers/hdl.py
182
+ - vendor/pygments-main/pygments/lexers/inferno.py
170
183
  - vendor/pygments-main/pygments/lexers/jvm.py
171
184
  - vendor/pygments-main/pygments/lexers/math.py
172
185
  - vendor/pygments-main/pygments/lexers/other.py
173
186
  - vendor/pygments-main/pygments/lexers/parsers.py
187
+ - vendor/pygments-main/pygments/lexers/qbasic.py
188
+ - vendor/pygments-main/pygments/lexers/rdf.py
174
189
  - vendor/pygments-main/pygments/lexers/shell.py
175
190
  - vendor/pygments-main/pygments/lexers/special.py
176
191
  - vendor/pygments-main/pygments/lexers/sql.py
@@ -180,6 +195,7 @@ files:
180
195
  - vendor/pygments-main/pygments/modeline.py
181
196
  - vendor/pygments-main/pygments/plugin.py
182
197
  - vendor/pygments-main/pygments/scanner.py
198
+ - vendor/pygments-main/pygments/sphinxext.py
183
199
  - vendor/pygments-main/pygments/style.py
184
200
  - vendor/pygments-main/pygments/styles/__init__.py
185
201
  - vendor/pygments-main/pygments/styles/autumn.py
@@ -190,10 +206,13 @@ files:
190
206
  - vendor/pygments-main/pygments/styles/emacs.py
191
207
  - vendor/pygments-main/pygments/styles/friendly.py
192
208
  - vendor/pygments-main/pygments/styles/fruity.py
209
+ - vendor/pygments-main/pygments/styles/igor.py
193
210
  - vendor/pygments-main/pygments/styles/manni.py
194
211
  - vendor/pygments-main/pygments/styles/monokai.py
195
212
  - vendor/pygments-main/pygments/styles/murphy.py
196
213
  - vendor/pygments-main/pygments/styles/native.py
214
+ - vendor/pygments-main/pygments/styles/paraiso_dark.py
215
+ - vendor/pygments-main/pygments/styles/paraiso_light.py
197
216
  - vendor/pygments-main/pygments/styles/pastie.py
198
217
  - vendor/pygments-main/pygments/styles/perldoc.py
199
218
  - vendor/pygments-main/pygments/styles/rrt.py
@@ -201,6 +220,7 @@ files:
201
220
  - vendor/pygments-main/pygments/styles/trac.py
202
221
  - vendor/pygments-main/pygments/styles/vim.py
203
222
  - vendor/pygments-main/pygments/styles/vs.py
223
+ - vendor/pygments-main/pygments/styles/xcode.py
204
224
  - vendor/pygments-main/pygments/token.py
205
225
  - vendor/pygments-main/pygments/unistring.py
206
226
  - vendor/pygments-main/pygments/util.py
@@ -211,7 +231,6 @@ files:
211
231
  - vendor/pygments-main/scripts/find_error.py
212
232
  - vendor/pygments-main/scripts/get_vimkw.py
213
233
  - vendor/pygments-main/scripts/pylintrc
214
- - vendor/pygments-main/scripts/reindent.py
215
234
  - vendor/pygments-main/scripts/vim2pygments.py
216
235
  - vendor/pygments-main/setup.cfg
217
236
  - vendor/pygments-main/setup.py
@@ -223,7 +242,7 @@ files:
223
242
  - vendor/pygments-main/tests/dtds/HTMLlat1.ent
224
243
  - vendor/pygments-main/tests/dtds/HTMLspec.ent
225
244
  - vendor/pygments-main/tests/dtds/HTMLsym.ent
226
- - vendor/pygments-main/tests/examplefiles/ANTLRv3.g
245
+ - vendor/pygments-main/tests/examplefiles/99_bottles_of_beer.chpl
227
246
  - vendor/pygments-main/tests/examplefiles/AcidStateAdvanced.hs
228
247
  - vendor/pygments-main/tests/examplefiles/AlternatingGroup.mu
229
248
  - vendor/pygments-main/tests/examplefiles/BOM.js
@@ -232,8 +251,9 @@ files:
232
251
  - vendor/pygments-main/tests/examplefiles/Constants.mo
233
252
  - vendor/pygments-main/tests/examplefiles/DancingSudoku.lhs
234
253
  - vendor/pygments-main/tests/examplefiles/Deflate.fs
254
+ - vendor/pygments-main/tests/examplefiles/Error.pmod
235
255
  - vendor/pygments-main/tests/examplefiles/Errors.scala
236
- - vendor/pygments-main/tests/examplefiles/File.hy
256
+ - vendor/pygments-main/tests/examplefiles/FakeFile.pike
237
257
  - vendor/pygments-main/tests/examplefiles/Get-CommandDefinitionHtml.ps1
238
258
  - vendor/pygments-main/tests/examplefiles/IPDispatchC.nc
239
259
  - vendor/pygments-main/tests/examplefiles/IPDispatchP.nc
@@ -246,6 +266,7 @@ files:
246
266
  - vendor/pygments-main/tests/examplefiles/Sorting.mod
247
267
  - vendor/pygments-main/tests/examplefiles/Sudoku.lhs
248
268
  - vendor/pygments-main/tests/examplefiles/addressbook.proto
269
+ - vendor/pygments-main/tests/examplefiles/antlr_ANTLRv3.g
249
270
  - vendor/pygments-main/tests/examplefiles/antlr_throws
250
271
  - vendor/pygments-main/tests/examplefiles/apache2.conf
251
272
  - vendor/pygments-main/tests/examplefiles/as3_test.as
@@ -263,53 +284,85 @@ files:
263
284
  - vendor/pygments-main/tests/examplefiles/ceval.c
264
285
  - vendor/pygments-main/tests/examplefiles/cheetah_example.html
265
286
  - vendor/pygments-main/tests/examplefiles/classes.dylan
287
+ - vendor/pygments-main/tests/examplefiles/clojure-weird-keywords.clj
266
288
  - vendor/pygments-main/tests/examplefiles/condensed_ruby.rb
267
289
  - vendor/pygments-main/tests/examplefiles/coq_RelationClasses
290
+ - vendor/pygments-main/tests/examplefiles/core.cljs
268
291
  - vendor/pygments-main/tests/examplefiles/database.pytb
269
292
  - vendor/pygments-main/tests/examplefiles/de.MoinMoin.po
270
293
  - vendor/pygments-main/tests/examplefiles/demo.ahk
271
294
  - vendor/pygments-main/tests/examplefiles/demo.cfm
295
+ - vendor/pygments-main/tests/examplefiles/demo.hbs
272
296
  - vendor/pygments-main/tests/examplefiles/django_sample.html+django
273
297
  - vendor/pygments-main/tests/examplefiles/dwarf.cw
298
+ - vendor/pygments-main/tests/examplefiles/ember.handlebars
274
299
  - vendor/pygments-main/tests/examplefiles/erl_session
275
300
  - vendor/pygments-main/tests/examplefiles/escape_semicolon.clj
276
301
  - vendor/pygments-main/tests/examplefiles/evil_regex.js
277
302
  - vendor/pygments-main/tests/examplefiles/example.Rd
303
+ - vendor/pygments-main/tests/examplefiles/example.als
278
304
  - vendor/pygments-main/tests/examplefiles/example.bug
279
305
  - vendor/pygments-main/tests/examplefiles/example.c
280
306
  - vendor/pygments-main/tests/examplefiles/example.ceylon
307
+ - vendor/pygments-main/tests/examplefiles/example.chai
281
308
  - vendor/pygments-main/tests/examplefiles/example.clay
282
309
  - vendor/pygments-main/tests/examplefiles/example.cls
283
310
  - vendor/pygments-main/tests/examplefiles/example.cob
311
+ - vendor/pygments-main/tests/examplefiles/example.coffee
284
312
  - vendor/pygments-main/tests/examplefiles/example.cpp
313
+ - vendor/pygments-main/tests/examplefiles/example.e
314
+ - vendor/pygments-main/tests/examplefiles/example.f90
315
+ - vendor/pygments-main/tests/examplefiles/example.feature
316
+ - vendor/pygments-main/tests/examplefiles/example.gd
317
+ - vendor/pygments-main/tests/examplefiles/example.gi
318
+ - vendor/pygments-main/tests/examplefiles/example.groovy
285
319
  - vendor/pygments-main/tests/examplefiles/example.gs
286
320
  - vendor/pygments-main/tests/examplefiles/example.gst
321
+ - vendor/pygments-main/tests/examplefiles/example.hs
287
322
  - vendor/pygments-main/tests/examplefiles/example.hx
323
+ - vendor/pygments-main/tests/examplefiles/example.i6t
324
+ - vendor/pygments-main/tests/examplefiles/example.i7x
325
+ - vendor/pygments-main/tests/examplefiles/example.inf
326
+ - vendor/pygments-main/tests/examplefiles/example.j
288
327
  - vendor/pygments-main/tests/examplefiles/example.jag
328
+ - vendor/pygments-main/tests/examplefiles/example.java
329
+ - vendor/pygments-main/tests/examplefiles/example.kal
289
330
  - vendor/pygments-main/tests/examplefiles/example.kt
290
331
  - vendor/pygments-main/tests/examplefiles/example.lagda
332
+ - vendor/pygments-main/tests/examplefiles/example.liquid
291
333
  - vendor/pygments-main/tests/examplefiles/example.lua
334
+ - vendor/pygments-main/tests/examplefiles/example.ma
292
335
  - vendor/pygments-main/tests/examplefiles/example.monkey
293
336
  - vendor/pygments-main/tests/examplefiles/example.moo
294
337
  - vendor/pygments-main/tests/examplefiles/example.moon
338
+ - vendor/pygments-main/tests/examplefiles/example.mq4
339
+ - vendor/pygments-main/tests/examplefiles/example.mqh
295
340
  - vendor/pygments-main/tests/examplefiles/example.msc
341
+ - vendor/pygments-main/tests/examplefiles/example.ni
296
342
  - vendor/pygments-main/tests/examplefiles/example.nim
343
+ - vendor/pygments-main/tests/examplefiles/example.nix
297
344
  - vendor/pygments-main/tests/examplefiles/example.ns2
298
- - vendor/pygments-main/tests/examplefiles/example.p
299
345
  - vendor/pygments-main/tests/examplefiles/example.pas
346
+ - vendor/pygments-main/tests/examplefiles/example.pp
300
347
  - vendor/pygments-main/tests/examplefiles/example.prg
301
348
  - vendor/pygments-main/tests/examplefiles/example.rb
349
+ - vendor/pygments-main/tests/examplefiles/example.red
350
+ - vendor/pygments-main/tests/examplefiles/example.reds
302
351
  - vendor/pygments-main/tests/examplefiles/example.reg
303
352
  - vendor/pygments-main/tests/examplefiles/example.rexx
304
353
  - vendor/pygments-main/tests/examplefiles/example.rhtml
305
354
  - vendor/pygments-main/tests/examplefiles/example.rkt
306
355
  - vendor/pygments-main/tests/examplefiles/example.rpf
356
+ - vendor/pygments-main/tests/examplefiles/example.sh
307
357
  - vendor/pygments-main/tests/examplefiles/example.sh-session
308
358
  - vendor/pygments-main/tests/examplefiles/example.shell-session
359
+ - vendor/pygments-main/tests/examplefiles/example.slim
360
+ - vendor/pygments-main/tests/examplefiles/example.sls
309
361
  - vendor/pygments-main/tests/examplefiles/example.sml
310
362
  - vendor/pygments-main/tests/examplefiles/example.snobol
311
363
  - vendor/pygments-main/tests/examplefiles/example.stan
312
364
  - vendor/pygments-main/tests/examplefiles/example.tea
365
+ - vendor/pygments-main/tests/examplefiles/example.todotxt
313
366
  - vendor/pygments-main/tests/examplefiles/example.ts
314
367
  - vendor/pygments-main/tests/examplefiles/example.u
315
368
  - vendor/pygments-main/tests/examplefiles/example.weechatlog
@@ -318,6 +371,8 @@ files:
318
371
  - vendor/pygments-main/tests/examplefiles/example.yaml
319
372
  - vendor/pygments-main/tests/examplefiles/example2.aspx
320
373
  - vendor/pygments-main/tests/examplefiles/example2.msc
374
+ - vendor/pygments-main/tests/examplefiles/exampleScript.cfc
375
+ - vendor/pygments-main/tests/examplefiles/exampleTag.cfc
321
376
  - vendor/pygments-main/tests/examplefiles/example_elixir.ex
322
377
  - vendor/pygments-main/tests/examplefiles/example_file.fy
323
378
  - vendor/pygments-main/tests/examplefiles/firefox.mak
@@ -334,12 +389,18 @@ files:
334
389
  - vendor/pygments-main/tests/examplefiles/glsl.frag
335
390
  - vendor/pygments-main/tests/examplefiles/glsl.vert
336
391
  - vendor/pygments-main/tests/examplefiles/grammar-test.p6
392
+ - vendor/pygments-main/tests/examplefiles/hash_syntax.rb
393
+ - vendor/pygments-main/tests/examplefiles/hello.at
394
+ - vendor/pygments-main/tests/examplefiles/hello.golo
395
+ - vendor/pygments-main/tests/examplefiles/hello.lsl
337
396
  - vendor/pygments-main/tests/examplefiles/hello.smali
338
397
  - vendor/pygments-main/tests/examplefiles/hello.sp
339
398
  - vendor/pygments-main/tests/examplefiles/html+php_faulty.php
340
399
  - vendor/pygments-main/tests/examplefiles/http_request_example
341
400
  - vendor/pygments-main/tests/examplefiles/http_response_example
342
- - vendor/pygments-main/tests/examplefiles/import.hs
401
+ - vendor/pygments-main/tests/examplefiles/hybris_File.hy
402
+ - vendor/pygments-main/tests/examplefiles/idl_sample.pro
403
+ - vendor/pygments-main/tests/examplefiles/iex_example
343
404
  - vendor/pygments-main/tests/examplefiles/inet_pton6.dg
344
405
  - vendor/pygments-main/tests/examplefiles/intro.ik
345
406
  - vendor/pygments-main/tests/examplefiles/ints.php
@@ -353,7 +414,9 @@ files:
353
414
  - vendor/pygments-main/tests/examplefiles/jinjadesignerdoc.rst
354
415
  - vendor/pygments-main/tests/examplefiles/json.lasso
355
416
  - vendor/pygments-main/tests/examplefiles/json.lasso9
417
+ - vendor/pygments-main/tests/examplefiles/language.hy
356
418
  - vendor/pygments-main/tests/examplefiles/lighttpd_config.conf
419
+ - vendor/pygments-main/tests/examplefiles/limbo.b
357
420
  - vendor/pygments-main/tests/examplefiles/linecontinuation.py
358
421
  - vendor/pygments-main/tests/examplefiles/livescript-demo.ls
359
422
  - vendor/pygments-main/tests/examplefiles/logos_example.xm
@@ -364,7 +427,6 @@ files:
364
427
  - vendor/pygments-main/tests/examplefiles/matlab_sample
365
428
  - vendor/pygments-main/tests/examplefiles/matlabsession_sample.txt
366
429
  - vendor/pygments-main/tests/examplefiles/metagrammar.treetop
367
- - vendor/pygments-main/tests/examplefiles/mg_sample.pro
368
430
  - vendor/pygments-main/tests/examplefiles/minehunt.qml
369
431
  - vendor/pygments-main/tests/examplefiles/minimal.ns2
370
432
  - vendor/pygments-main/tests/examplefiles/moin_SyntaxReference.txt
@@ -376,7 +438,8 @@ files:
376
438
  - vendor/pygments-main/tests/examplefiles/nginx_nginx.conf
377
439
  - vendor/pygments-main/tests/examplefiles/numbers.c
378
440
  - vendor/pygments-main/tests/examplefiles/objc_example.m
379
- - vendor/pygments-main/tests/examplefiles/objc_example2.m
441
+ - vendor/pygments-main/tests/examplefiles/openedge_example
442
+ - vendor/pygments-main/tests/examplefiles/pawn_example
380
443
  - vendor/pygments-main/tests/examplefiles/perl_misc
381
444
  - vendor/pygments-main/tests/examplefiles/perl_perl5db
382
445
  - vendor/pygments-main/tests/examplefiles/perl_regex-delims
@@ -393,22 +456,27 @@ files:
393
456
  - vendor/pygments-main/tests/examplefiles/pytb_test2.pytb
394
457
  - vendor/pygments-main/tests/examplefiles/pytb_test3.pytb
395
458
  - vendor/pygments-main/tests/examplefiles/python25-bsd.mak
459
+ - vendor/pygments-main/tests/examplefiles/qbasic_example
396
460
  - vendor/pygments-main/tests/examplefiles/qsort.prolog
397
461
  - vendor/pygments-main/tests/examplefiles/r-console-transcript.Rout
462
+ - vendor/pygments-main/tests/examplefiles/r6rs-comments.scm
398
463
  - vendor/pygments-main/tests/examplefiles/ragel-cpp_rlscan
399
464
  - vendor/pygments-main/tests/examplefiles/ragel-cpp_snippet
400
465
  - vendor/pygments-main/tests/examplefiles/regex.js
401
466
  - vendor/pygments-main/tests/examplefiles/reversi.lsp
402
- - vendor/pygments-main/tests/examplefiles/robotframework.txt
467
+ - vendor/pygments-main/tests/examplefiles/robotframework_test.txt
468
+ - vendor/pygments-main/tests/examplefiles/rql-queries.rql
403
469
  - vendor/pygments-main/tests/examplefiles/ruby_func_def.rb
404
470
  - vendor/pygments-main/tests/examplefiles/rust_example.rs
405
471
  - vendor/pygments-main/tests/examplefiles/scilab.sci
472
+ - vendor/pygments-main/tests/examplefiles/scope.cirru
406
473
  - vendor/pygments-main/tests/examplefiles/session.dylan-console
407
474
  - vendor/pygments-main/tests/examplefiles/sibling.prolog
408
475
  - vendor/pygments-main/tests/examplefiles/simple.md
409
476
  - vendor/pygments-main/tests/examplefiles/smarty_example.html
410
477
  - vendor/pygments-main/tests/examplefiles/source.lgt
411
478
  - vendor/pygments-main/tests/examplefiles/sources.list
479
+ - vendor/pygments-main/tests/examplefiles/sparql.rq
412
480
  - vendor/pygments-main/tests/examplefiles/sphere.pov
413
481
  - vendor/pygments-main/tests/examplefiles/sqlite3.sqlite3-console
414
482
  - vendor/pygments-main/tests/examplefiles/squid.conf
@@ -420,9 +488,9 @@ files:
420
488
  - vendor/pygments-main/tests/examplefiles/test.R
421
489
  - vendor/pygments-main/tests/examplefiles/test.adb
422
490
  - vendor/pygments-main/tests/examplefiles/test.agda
491
+ - vendor/pygments-main/tests/examplefiles/test.apl
423
492
  - vendor/pygments-main/tests/examplefiles/test.asy
424
493
  - vendor/pygments-main/tests/examplefiles/test.awk
425
- - vendor/pygments-main/tests/examplefiles/test.bas
426
494
  - vendor/pygments-main/tests/examplefiles/test.bb
427
495
  - vendor/pygments-main/tests/examplefiles/test.bmx
428
496
  - vendor/pygments-main/tests/examplefiles/test.boo
@@ -430,6 +498,7 @@ files:
430
498
  - vendor/pygments-main/tests/examplefiles/test.cs
431
499
  - vendor/pygments-main/tests/examplefiles/test.css
432
500
  - vendor/pygments-main/tests/examplefiles/test.cu
501
+ - vendor/pygments-main/tests/examplefiles/test.cyp
433
502
  - vendor/pygments-main/tests/examplefiles/test.d
434
503
  - vendor/pygments-main/tests/examplefiles/test.dart
435
504
  - vendor/pygments-main/tests/examplefiles/test.dtd
@@ -444,56 +513,73 @@ files:
444
513
  - vendor/pygments-main/tests/examplefiles/test.gdc
445
514
  - vendor/pygments-main/tests/examplefiles/test.groovy
446
515
  - vendor/pygments-main/tests/examplefiles/test.html
516
+ - vendor/pygments-main/tests/examplefiles/test.idr
447
517
  - vendor/pygments-main/tests/examplefiles/test.ini
448
518
  - vendor/pygments-main/tests/examplefiles/test.java
449
519
  - vendor/pygments-main/tests/examplefiles/test.jsp
450
520
  - vendor/pygments-main/tests/examplefiles/test.maql
521
+ - vendor/pygments-main/tests/examplefiles/test.mask
451
522
  - vendor/pygments-main/tests/examplefiles/test.mod
452
523
  - vendor/pygments-main/tests/examplefiles/test.moo
453
524
  - vendor/pygments-main/tests/examplefiles/test.myt
454
525
  - vendor/pygments-main/tests/examplefiles/test.nim
455
526
  - vendor/pygments-main/tests/examplefiles/test.opa
456
527
  - vendor/pygments-main/tests/examplefiles/test.p6
528
+ - vendor/pygments-main/tests/examplefiles/test.pan
457
529
  - vendor/pygments-main/tests/examplefiles/test.pas
458
530
  - vendor/pygments-main/tests/examplefiles/test.php
531
+ - vendor/pygments-main/tests/examplefiles/test.pig
459
532
  - vendor/pygments-main/tests/examplefiles/test.plot
460
533
  - vendor/pygments-main/tests/examplefiles/test.ps1
534
+ - vendor/pygments-main/tests/examplefiles/test.pwn
461
535
  - vendor/pygments-main/tests/examplefiles/test.pypylog
462
536
  - vendor/pygments-main/tests/examplefiles/test.r3
463
537
  - vendor/pygments-main/tests/examplefiles/test.rb
464
538
  - vendor/pygments-main/tests/examplefiles/test.rhtml
539
+ - vendor/pygments-main/tests/examplefiles/test.rsl
465
540
  - vendor/pygments-main/tests/examplefiles/test.scaml
466
541
  - vendor/pygments-main/tests/examplefiles/test.ssp
542
+ - vendor/pygments-main/tests/examplefiles/test.swift
467
543
  - vendor/pygments-main/tests/examplefiles/test.tcsh
468
544
  - vendor/pygments-main/tests/examplefiles/test.vb
469
545
  - vendor/pygments-main/tests/examplefiles/test.vhdl
470
546
  - vendor/pygments-main/tests/examplefiles/test.xqy
471
547
  - vendor/pygments-main/tests/examplefiles/test.xsl
548
+ - vendor/pygments-main/tests/examplefiles/test.zep
472
549
  - vendor/pygments-main/tests/examplefiles/test2.pypylog
473
550
  - vendor/pygments-main/tests/examplefiles/truncated.pytb
474
551
  - vendor/pygments-main/tests/examplefiles/type.lisp
475
552
  - vendor/pygments-main/tests/examplefiles/underscore.coffee
476
553
  - vendor/pygments-main/tests/examplefiles/unicode.applescript
554
+ - vendor/pygments-main/tests/examplefiles/unicode.go
477
555
  - vendor/pygments-main/tests/examplefiles/unicodedoc.py
478
556
  - vendor/pygments-main/tests/examplefiles/unix-io.lid
557
+ - vendor/pygments-main/tests/examplefiles/vbnet_test.bas
558
+ - vendor/pygments-main/tests/examplefiles/vctreestatus_hg
559
+ - vendor/pygments-main/tests/examplefiles/vimrc
479
560
  - vendor/pygments-main/tests/examplefiles/webkit-transition.css
480
561
  - vendor/pygments-main/tests/examplefiles/while.pov
481
562
  - vendor/pygments-main/tests/examplefiles/wiki.factor
482
563
  - vendor/pygments-main/tests/examplefiles/xml_example
483
564
  - vendor/pygments-main/tests/examplefiles/zmlrpc.f90
484
- - vendor/pygments-main/tests/old_run.py
485
565
  - vendor/pygments-main/tests/run.py
566
+ - vendor/pygments-main/tests/string_asserts.py
486
567
  - vendor/pygments-main/tests/support.py
487
568
  - vendor/pygments-main/tests/support/tags
488
569
  - vendor/pygments-main/tests/test_basic_api.py
570
+ - vendor/pygments-main/tests/test_cfm.py
489
571
  - vendor/pygments-main/tests/test_clexer.py
490
572
  - vendor/pygments-main/tests/test_cmdline.py
491
573
  - vendor/pygments-main/tests/test_examplefiles.py
492
574
  - vendor/pygments-main/tests/test_html_formatter.py
493
575
  - vendor/pygments-main/tests/test_latex_formatter.py
494
576
  - vendor/pygments-main/tests/test_lexers_other.py
577
+ - vendor/pygments-main/tests/test_objectiveclexer.py
495
578
  - vendor/pygments-main/tests/test_perllexer.py
579
+ - vendor/pygments-main/tests/test_qbasiclexer.py
496
580
  - vendor/pygments-main/tests/test_regexlexer.py
581
+ - vendor/pygments-main/tests/test_rtf_formatter.py
582
+ - vendor/pygments-main/tests/test_string_asserts.py
497
583
  - vendor/pygments-main/tests/test_token.py
498
584
  - vendor/pygments-main/tests/test_using_api.py
499
585
  - vendor/pygments-main/tests/test_util.py
@@ -538,28 +624,29 @@ files:
538
624
  - vendor/simplejson/simplejson/tests/test_tuple.py
539
625
  - vendor/simplejson/simplejson/tests/test_unicode.py
540
626
  - vendor/simplejson/simplejson/tool.py
541
- homepage: http://github.com/tmm1/pygments.rb
542
- licenses: []
627
+ homepage: https://github.com/tmm1/pygments.rb
628
+ licenses:
629
+ - MIT
630
+ metadata: {}
543
631
  post_install_message:
544
632
  rdoc_options: []
545
633
  require_paths:
546
634
  - lib
547
635
  required_ruby_version: !ruby/object:Gem::Requirement
548
- none: false
549
636
  requirements:
550
- - - ! '>='
637
+ - - '>='
551
638
  - !ruby/object:Gem::Version
552
639
  version: '0'
553
640
  required_rubygems_version: !ruby/object:Gem::Requirement
554
- none: false
555
641
  requirements:
556
- - - ! '>='
642
+ - - '>='
557
643
  - !ruby/object:Gem::Version
558
644
  version: '0'
559
645
  requirements: []
560
646
  rubyforge_project:
561
- rubygems_version: 1.8.23
647
+ rubygems_version: 2.0.3
562
648
  signing_key:
563
- specification_version: 3
649
+ specification_version: 4
564
650
  summary: pygments wrapper for ruby
565
651
  test_files: []
652
+ has_rdoc: false