gitlab-pygments.rb 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (399) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +2 -0
  3. data/README.md +91 -0
  4. data/Rakefile +78 -0
  5. data/bench.rb +22 -0
  6. data/cache-lexers.rb +8 -0
  7. data/lexers +0 -0
  8. data/lib/pygments/lexer.rb +148 -0
  9. data/lib/pygments/mentos.py +344 -0
  10. data/lib/pygments/popen.rb +389 -0
  11. data/lib/pygments/version.rb +3 -0
  12. data/lib/pygments.rb +8 -0
  13. data/pygments.rb.gemspec +24 -0
  14. data/test/test_data.c +2581 -0
  15. data/test/test_data.py +514 -0
  16. data/test/test_data_generated +2582 -0
  17. data/test/test_pygments.rb +276 -0
  18. data/vendor/custom_formatters/gitlab.py +171 -0
  19. data/vendor/custom_lexers/github.py +362 -0
  20. data/vendor/pygments-main/AUTHORS +115 -0
  21. data/vendor/pygments-main/CHANGES +762 -0
  22. data/vendor/pygments-main/LICENSE +25 -0
  23. data/vendor/pygments-main/MANIFEST.in +6 -0
  24. data/vendor/pygments-main/Makefile +59 -0
  25. data/vendor/pygments-main/REVISION +1 -0
  26. data/vendor/pygments-main/TODO +15 -0
  27. data/vendor/pygments-main/docs/generate.py +472 -0
  28. data/vendor/pygments-main/docs/pygmentize.1 +94 -0
  29. data/vendor/pygments-main/docs/src/api.txt +270 -0
  30. data/vendor/pygments-main/docs/src/authors.txt +5 -0
  31. data/vendor/pygments-main/docs/src/changelog.txt +5 -0
  32. data/vendor/pygments-main/docs/src/cmdline.txt +147 -0
  33. data/vendor/pygments-main/docs/src/filterdevelopment.txt +70 -0
  34. data/vendor/pygments-main/docs/src/filters.txt +42 -0
  35. data/vendor/pygments-main/docs/src/formatterdevelopment.txt +169 -0
  36. data/vendor/pygments-main/docs/src/formatters.txt +48 -0
  37. data/vendor/pygments-main/docs/src/index.txt +69 -0
  38. data/vendor/pygments-main/docs/src/installation.txt +71 -0
  39. data/vendor/pygments-main/docs/src/integrate.txt +43 -0
  40. data/vendor/pygments-main/docs/src/lexerdevelopment.txt +551 -0
  41. data/vendor/pygments-main/docs/src/lexers.txt +67 -0
  42. data/vendor/pygments-main/docs/src/moinmoin.txt +39 -0
  43. data/vendor/pygments-main/docs/src/plugins.txt +93 -0
  44. data/vendor/pygments-main/docs/src/quickstart.txt +202 -0
  45. data/vendor/pygments-main/docs/src/rstdirective.txt +22 -0
  46. data/vendor/pygments-main/docs/src/styles.txt +143 -0
  47. data/vendor/pygments-main/docs/src/tokens.txt +349 -0
  48. data/vendor/pygments-main/docs/src/unicode.txt +49 -0
  49. data/vendor/pygments-main/external/markdown-processor.py +67 -0
  50. data/vendor/pygments-main/external/moin-parser.py +112 -0
  51. data/vendor/pygments-main/external/pygments.bashcomp +38 -0
  52. data/vendor/pygments-main/external/rst-directive-old.py +77 -0
  53. data/vendor/pygments-main/external/rst-directive.py +83 -0
  54. data/vendor/pygments-main/ez_setup.py +276 -0
  55. data/vendor/pygments-main/pygmentize +7 -0
  56. data/vendor/pygments-main/pygments/__init__.py +91 -0
  57. data/vendor/pygments-main/pygments/cmdline.py +433 -0
  58. data/vendor/pygments-main/pygments/console.py +74 -0
  59. data/vendor/pygments-main/pygments/filter.py +74 -0
  60. data/vendor/pygments-main/pygments/filters/__init__.py +357 -0
  61. data/vendor/pygments-main/pygments/formatter.py +92 -0
  62. data/vendor/pygments-main/pygments/formatters/__init__.py +68 -0
  63. data/vendor/pygments-main/pygments/formatters/_mapping.py +94 -0
  64. data/vendor/pygments-main/pygments/formatters/bbcode.py +109 -0
  65. data/vendor/pygments-main/pygments/formatters/gitlab.py +171 -0
  66. data/vendor/pygments-main/pygments/formatters/html.py +750 -0
  67. data/vendor/pygments-main/pygments/formatters/img.py +553 -0
  68. data/vendor/pygments-main/pygments/formatters/latex.py +378 -0
  69. data/vendor/pygments-main/pygments/formatters/other.py +117 -0
  70. data/vendor/pygments-main/pygments/formatters/rtf.py +136 -0
  71. data/vendor/pygments-main/pygments/formatters/svg.py +154 -0
  72. data/vendor/pygments-main/pygments/formatters/terminal.py +112 -0
  73. data/vendor/pygments-main/pygments/formatters/terminal256.py +222 -0
  74. data/vendor/pygments-main/pygments/lexer.py +697 -0
  75. data/vendor/pygments-main/pygments/lexers/__init__.py +229 -0
  76. data/vendor/pygments-main/pygments/lexers/_asybuiltins.py +1645 -0
  77. data/vendor/pygments-main/pygments/lexers/_clbuiltins.py +232 -0
  78. data/vendor/pygments-main/pygments/lexers/_luabuiltins.py +249 -0
  79. data/vendor/pygments-main/pygments/lexers/_mapping.py +298 -0
  80. data/vendor/pygments-main/pygments/lexers/_phpbuiltins.py +3787 -0
  81. data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +232 -0
  82. data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +29 -0
  83. data/vendor/pygments-main/pygments/lexers/_vimbuiltins.py +3 -0
  84. data/vendor/pygments-main/pygments/lexers/agile.py +1803 -0
  85. data/vendor/pygments-main/pygments/lexers/asm.py +360 -0
  86. data/vendor/pygments-main/pygments/lexers/compiled.py +2891 -0
  87. data/vendor/pygments-main/pygments/lexers/dotnet.py +636 -0
  88. data/vendor/pygments-main/pygments/lexers/functional.py +1832 -0
  89. data/vendor/pygments-main/pygments/lexers/github.py +362 -0
  90. data/vendor/pygments-main/pygments/lexers/hdl.py +356 -0
  91. data/vendor/pygments-main/pygments/lexers/jvm.py +847 -0
  92. data/vendor/pygments-main/pygments/lexers/math.py +1072 -0
  93. data/vendor/pygments-main/pygments/lexers/other.py +3339 -0
  94. data/vendor/pygments-main/pygments/lexers/parsers.py +695 -0
  95. data/vendor/pygments-main/pygments/lexers/shell.py +361 -0
  96. data/vendor/pygments-main/pygments/lexers/special.py +100 -0
  97. data/vendor/pygments-main/pygments/lexers/sql.py +559 -0
  98. data/vendor/pygments-main/pygments/lexers/templates.py +1631 -0
  99. data/vendor/pygments-main/pygments/lexers/text.py +1753 -0
  100. data/vendor/pygments-main/pygments/lexers/web.py +2864 -0
  101. data/vendor/pygments-main/pygments/plugin.py +74 -0
  102. data/vendor/pygments-main/pygments/scanner.py +104 -0
  103. data/vendor/pygments-main/pygments/style.py +117 -0
  104. data/vendor/pygments-main/pygments/styles/__init__.py +70 -0
  105. data/vendor/pygments-main/pygments/styles/autumn.py +65 -0
  106. data/vendor/pygments-main/pygments/styles/borland.py +51 -0
  107. data/vendor/pygments-main/pygments/styles/bw.py +49 -0
  108. data/vendor/pygments-main/pygments/styles/colorful.py +81 -0
  109. data/vendor/pygments-main/pygments/styles/default.py +73 -0
  110. data/vendor/pygments-main/pygments/styles/emacs.py +72 -0
  111. data/vendor/pygments-main/pygments/styles/friendly.py +72 -0
  112. data/vendor/pygments-main/pygments/styles/fruity.py +42 -0
  113. data/vendor/pygments-main/pygments/styles/manni.py +75 -0
  114. data/vendor/pygments-main/pygments/styles/monokai.py +106 -0
  115. data/vendor/pygments-main/pygments/styles/murphy.py +80 -0
  116. data/vendor/pygments-main/pygments/styles/native.py +65 -0
  117. data/vendor/pygments-main/pygments/styles/pastie.py +75 -0
  118. data/vendor/pygments-main/pygments/styles/perldoc.py +69 -0
  119. data/vendor/pygments-main/pygments/styles/rrt.py +33 -0
  120. data/vendor/pygments-main/pygments/styles/tango.py +141 -0
  121. data/vendor/pygments-main/pygments/styles/trac.py +63 -0
  122. data/vendor/pygments-main/pygments/styles/vim.py +63 -0
  123. data/vendor/pygments-main/pygments/styles/vs.py +38 -0
  124. data/vendor/pygments-main/pygments/token.py +195 -0
  125. data/vendor/pygments-main/pygments/unistring.py +130 -0
  126. data/vendor/pygments-main/pygments/util.py +232 -0
  127. data/vendor/pygments-main/scripts/check_sources.py +242 -0
  128. data/vendor/pygments-main/scripts/detect_missing_analyse_text.py +30 -0
  129. data/vendor/pygments-main/scripts/epydoc.css +280 -0
  130. data/vendor/pygments-main/scripts/find_codetags.py +205 -0
  131. data/vendor/pygments-main/scripts/find_error.py +171 -0
  132. data/vendor/pygments-main/scripts/get_vimkw.py +43 -0
  133. data/vendor/pygments-main/scripts/pylintrc +301 -0
  134. data/vendor/pygments-main/scripts/reindent.py +291 -0
  135. data/vendor/pygments-main/scripts/vim2pygments.py +933 -0
  136. data/vendor/pygments-main/setup.cfg +6 -0
  137. data/vendor/pygments-main/setup.py +88 -0
  138. data/vendor/pygments-main/tests/dtds/HTML4-f.dtd +37 -0
  139. data/vendor/pygments-main/tests/dtds/HTML4-s.dtd +869 -0
  140. data/vendor/pygments-main/tests/dtds/HTML4.dcl +88 -0
  141. data/vendor/pygments-main/tests/dtds/HTML4.dtd +1092 -0
  142. data/vendor/pygments-main/tests/dtds/HTML4.soc +9 -0
  143. data/vendor/pygments-main/tests/dtds/HTMLlat1.ent +195 -0
  144. data/vendor/pygments-main/tests/dtds/HTMLspec.ent +77 -0
  145. data/vendor/pygments-main/tests/dtds/HTMLsym.ent +241 -0
  146. data/vendor/pygments-main/tests/examplefiles/ANTLRv3.g +608 -0
  147. data/vendor/pygments-main/tests/examplefiles/AcidStateAdvanced.hs +209 -0
  148. data/vendor/pygments-main/tests/examplefiles/AlternatingGroup.mu +102 -0
  149. data/vendor/pygments-main/tests/examplefiles/CPDictionary.j +611 -0
  150. data/vendor/pygments-main/tests/examplefiles/Constants.mo +158 -0
  151. data/vendor/pygments-main/tests/examplefiles/DancingSudoku.lhs +411 -0
  152. data/vendor/pygments-main/tests/examplefiles/Errors.scala +18 -0
  153. data/vendor/pygments-main/tests/examplefiles/File.hy +174 -0
  154. data/vendor/pygments-main/tests/examplefiles/Intro.java +1660 -0
  155. data/vendor/pygments-main/tests/examplefiles/Makefile +1131 -0
  156. data/vendor/pygments-main/tests/examplefiles/Object.st +4394 -0
  157. data/vendor/pygments-main/tests/examplefiles/OrderedMap.hx +584 -0
  158. data/vendor/pygments-main/tests/examplefiles/SmallCheck.hs +378 -0
  159. data/vendor/pygments-main/tests/examplefiles/Sorting.mod +470 -0
  160. data/vendor/pygments-main/tests/examplefiles/Sudoku.lhs +382 -0
  161. data/vendor/pygments-main/tests/examplefiles/addressbook.proto +30 -0
  162. data/vendor/pygments-main/tests/examplefiles/antlr_throws +1 -0
  163. data/vendor/pygments-main/tests/examplefiles/apache2.conf +393 -0
  164. data/vendor/pygments-main/tests/examplefiles/as3_test.as +143 -0
  165. data/vendor/pygments-main/tests/examplefiles/as3_test2.as +46 -0
  166. data/vendor/pygments-main/tests/examplefiles/as3_test3.as +3 -0
  167. data/vendor/pygments-main/tests/examplefiles/aspx-cs_example +27 -0
  168. data/vendor/pygments-main/tests/examplefiles/badcase.java +2 -0
  169. data/vendor/pygments-main/tests/examplefiles/batchfile.bat +49 -0
  170. data/vendor/pygments-main/tests/examplefiles/boot-9.scm +1557 -0
  171. data/vendor/pygments-main/tests/examplefiles/cells.ps +515 -0
  172. data/vendor/pygments-main/tests/examplefiles/ceval.c +2604 -0
  173. data/vendor/pygments-main/tests/examplefiles/cheetah_example.html +13 -0
  174. data/vendor/pygments-main/tests/examplefiles/classes.dylan +40 -0
  175. data/vendor/pygments-main/tests/examplefiles/condensed_ruby.rb +10 -0
  176. data/vendor/pygments-main/tests/examplefiles/coq_RelationClasses +447 -0
  177. data/vendor/pygments-main/tests/examplefiles/database.pytb +20 -0
  178. data/vendor/pygments-main/tests/examplefiles/de.MoinMoin.po +2461 -0
  179. data/vendor/pygments-main/tests/examplefiles/demo.ahk +181 -0
  180. data/vendor/pygments-main/tests/examplefiles/demo.cfm +38 -0
  181. data/vendor/pygments-main/tests/examplefiles/django_sample.html+django +68 -0
  182. data/vendor/pygments-main/tests/examplefiles/dwarf.cw +17 -0
  183. data/vendor/pygments-main/tests/examplefiles/erl_session +10 -0
  184. data/vendor/pygments-main/tests/examplefiles/escape_semicolon.clj +1 -0
  185. data/vendor/pygments-main/tests/examplefiles/evil_regex.js +48 -0
  186. data/vendor/pygments-main/tests/examplefiles/example.c +2080 -0
  187. data/vendor/pygments-main/tests/examplefiles/example.cls +15 -0
  188. data/vendor/pygments-main/tests/examplefiles/example.cpp +2363 -0
  189. data/vendor/pygments-main/tests/examplefiles/example.gs +106 -0
  190. data/vendor/pygments-main/tests/examplefiles/example.gst +7 -0
  191. data/vendor/pygments-main/tests/examplefiles/example.kt +47 -0
  192. data/vendor/pygments-main/tests/examplefiles/example.lua +250 -0
  193. data/vendor/pygments-main/tests/examplefiles/example.moo +26 -0
  194. data/vendor/pygments-main/tests/examplefiles/example.moon +629 -0
  195. data/vendor/pygments-main/tests/examplefiles/example.nim +1010 -0
  196. data/vendor/pygments-main/tests/examplefiles/example.ns2 +69 -0
  197. data/vendor/pygments-main/tests/examplefiles/example.p +34 -0
  198. data/vendor/pygments-main/tests/examplefiles/example.pas +2708 -0
  199. data/vendor/pygments-main/tests/examplefiles/example.rb +1852 -0
  200. data/vendor/pygments-main/tests/examplefiles/example.rhtml +561 -0
  201. data/vendor/pygments-main/tests/examplefiles/example.sh-session +19 -0
  202. data/vendor/pygments-main/tests/examplefiles/example.sml +156 -0
  203. data/vendor/pygments-main/tests/examplefiles/example.snobol +15 -0
  204. data/vendor/pygments-main/tests/examplefiles/example.tea +34 -0
  205. data/vendor/pygments-main/tests/examplefiles/example.u +548 -0
  206. data/vendor/pygments-main/tests/examplefiles/example.weechatlog +9 -0
  207. data/vendor/pygments-main/tests/examplefiles/example.xhtml +376 -0
  208. data/vendor/pygments-main/tests/examplefiles/example.yaml +302 -0
  209. data/vendor/pygments-main/tests/examplefiles/example2.aspx +29 -0
  210. data/vendor/pygments-main/tests/examplefiles/example_elixir.ex +363 -0
  211. data/vendor/pygments-main/tests/examplefiles/example_file.fy +128 -0
  212. data/vendor/pygments-main/tests/examplefiles/firefox.mak +586 -0
  213. data/vendor/pygments-main/tests/examplefiles/flipflop.sv +19 -0
  214. data/vendor/pygments-main/tests/examplefiles/foo.sce +6 -0
  215. data/vendor/pygments-main/tests/examplefiles/format.ml +1213 -0
  216. data/vendor/pygments-main/tests/examplefiles/fucked_up.rb +77 -0
  217. data/vendor/pygments-main/tests/examplefiles/function.mu +1 -0
  218. data/vendor/pygments-main/tests/examplefiles/functional.rst +1472 -0
  219. data/vendor/pygments-main/tests/examplefiles/genclass.clj +510 -0
  220. data/vendor/pygments-main/tests/examplefiles/genshi_example.xml+genshi +193 -0
  221. data/vendor/pygments-main/tests/examplefiles/genshitext_example.genshitext +33 -0
  222. data/vendor/pygments-main/tests/examplefiles/glsl.frag +7 -0
  223. data/vendor/pygments-main/tests/examplefiles/glsl.vert +13 -0
  224. data/vendor/pygments-main/tests/examplefiles/html+php_faulty.php +1 -0
  225. data/vendor/pygments-main/tests/examplefiles/http_request_example +14 -0
  226. data/vendor/pygments-main/tests/examplefiles/http_response_example +27 -0
  227. data/vendor/pygments-main/tests/examplefiles/import.hs +4 -0
  228. data/vendor/pygments-main/tests/examplefiles/intro.ik +24 -0
  229. data/vendor/pygments-main/tests/examplefiles/ints.php +10 -0
  230. data/vendor/pygments-main/tests/examplefiles/intsyn.fun +675 -0
  231. data/vendor/pygments-main/tests/examplefiles/intsyn.sig +286 -0
  232. data/vendor/pygments-main/tests/examplefiles/irb_heredoc +8 -0
  233. data/vendor/pygments-main/tests/examplefiles/irc.lsp +214 -0
  234. data/vendor/pygments-main/tests/examplefiles/java.properties +16 -0
  235. data/vendor/pygments-main/tests/examplefiles/jbst_example1.jbst +28 -0
  236. data/vendor/pygments-main/tests/examplefiles/jbst_example2.jbst +45 -0
  237. data/vendor/pygments-main/tests/examplefiles/jinjadesignerdoc.rst +713 -0
  238. data/vendor/pygments-main/tests/examplefiles/lighttpd_config.conf +13 -0
  239. data/vendor/pygments-main/tests/examplefiles/linecontinuation.py +47 -0
  240. data/vendor/pygments-main/tests/examplefiles/ltmain.sh +2849 -0
  241. data/vendor/pygments-main/tests/examplefiles/main.cmake +42 -0
  242. data/vendor/pygments-main/tests/examplefiles/markdown.lsp +679 -0
  243. data/vendor/pygments-main/tests/examplefiles/matlab_noreturn +3 -0
  244. data/vendor/pygments-main/tests/examplefiles/matlab_sample +27 -0
  245. data/vendor/pygments-main/tests/examplefiles/matlabsession_sample.txt +37 -0
  246. data/vendor/pygments-main/tests/examplefiles/minimal.ns2 +4 -0
  247. data/vendor/pygments-main/tests/examplefiles/moin_SyntaxReference.txt +340 -0
  248. data/vendor/pygments-main/tests/examplefiles/multiline_regexes.rb +38 -0
  249. data/vendor/pygments-main/tests/examplefiles/nasm_aoutso.asm +96 -0
  250. data/vendor/pygments-main/tests/examplefiles/nasm_objexe.asm +30 -0
  251. data/vendor/pygments-main/tests/examplefiles/nemerle_sample.n +87 -0
  252. data/vendor/pygments-main/tests/examplefiles/nginx_nginx.conf +118 -0
  253. data/vendor/pygments-main/tests/examplefiles/numbers.c +12 -0
  254. data/vendor/pygments-main/tests/examplefiles/objc_example.m +25 -0
  255. data/vendor/pygments-main/tests/examplefiles/objc_example2.m +24 -0
  256. data/vendor/pygments-main/tests/examplefiles/perl_misc +62 -0
  257. data/vendor/pygments-main/tests/examplefiles/perl_perl5db +998 -0
  258. data/vendor/pygments-main/tests/examplefiles/perl_regex-delims +120 -0
  259. data/vendor/pygments-main/tests/examplefiles/perlfunc.1 +856 -0
  260. data/vendor/pygments-main/tests/examplefiles/phpcomplete.vim +567 -0
  261. data/vendor/pygments-main/tests/examplefiles/pleac.in.rb +1223 -0
  262. data/vendor/pygments-main/tests/examplefiles/postgresql_test.txt +47 -0
  263. data/vendor/pygments-main/tests/examplefiles/pppoe.applescript +10 -0
  264. data/vendor/pygments-main/tests/examplefiles/psql_session.txt +122 -0
  265. data/vendor/pygments-main/tests/examplefiles/py3_test.txt +2 -0
  266. data/vendor/pygments-main/tests/examplefiles/pycon_test.pycon +14 -0
  267. data/vendor/pygments-main/tests/examplefiles/pytb_test2.pytb +2 -0
  268. data/vendor/pygments-main/tests/examplefiles/python25-bsd.mak +234 -0
  269. data/vendor/pygments-main/tests/examplefiles/qsort.prolog +13 -0
  270. data/vendor/pygments-main/tests/examplefiles/r-console-transcript.Rout +38 -0
  271. data/vendor/pygments-main/tests/examplefiles/ragel-cpp_rlscan +280 -0
  272. data/vendor/pygments-main/tests/examplefiles/ragel-cpp_snippet +2 -0
  273. data/vendor/pygments-main/tests/examplefiles/regex.js +22 -0
  274. data/vendor/pygments-main/tests/examplefiles/reversi.lsp +427 -0
  275. data/vendor/pygments-main/tests/examplefiles/ruby_func_def.rb +11 -0
  276. data/vendor/pygments-main/tests/examplefiles/scilab.sci +30 -0
  277. data/vendor/pygments-main/tests/examplefiles/sibling.prolog +19 -0
  278. data/vendor/pygments-main/tests/examplefiles/simple.md +747 -0
  279. data/vendor/pygments-main/tests/examplefiles/smarty_example.html +209 -0
  280. data/vendor/pygments-main/tests/examplefiles/source.lgt +343 -0
  281. data/vendor/pygments-main/tests/examplefiles/sources.list +62 -0
  282. data/vendor/pygments-main/tests/examplefiles/sphere.pov +18 -0
  283. data/vendor/pygments-main/tests/examplefiles/sqlite3.sqlite3-console +27 -0
  284. data/vendor/pygments-main/tests/examplefiles/squid.conf +30 -0
  285. data/vendor/pygments-main/tests/examplefiles/string.jl +1031 -0
  286. data/vendor/pygments-main/tests/examplefiles/string_delimiters.d +21 -0
  287. data/vendor/pygments-main/tests/examplefiles/stripheredoc.sh +3 -0
  288. data/vendor/pygments-main/tests/examplefiles/test.R +119 -0
  289. data/vendor/pygments-main/tests/examplefiles/test.adb +211 -0
  290. data/vendor/pygments-main/tests/examplefiles/test.asy +131 -0
  291. data/vendor/pygments-main/tests/examplefiles/test.awk +121 -0
  292. data/vendor/pygments-main/tests/examplefiles/test.bas +29 -0
  293. data/vendor/pygments-main/tests/examplefiles/test.bmx +145 -0
  294. data/vendor/pygments-main/tests/examplefiles/test.boo +39 -0
  295. data/vendor/pygments-main/tests/examplefiles/test.bro +250 -0
  296. data/vendor/pygments-main/tests/examplefiles/test.cs +374 -0
  297. data/vendor/pygments-main/tests/examplefiles/test.css +54 -0
  298. data/vendor/pygments-main/tests/examplefiles/test.d +135 -0
  299. data/vendor/pygments-main/tests/examplefiles/test.dart +23 -0
  300. data/vendor/pygments-main/tests/examplefiles/test.dtd +89 -0
  301. data/vendor/pygments-main/tests/examplefiles/test.ec +605 -0
  302. data/vendor/pygments-main/tests/examplefiles/test.ecl +58 -0
  303. data/vendor/pygments-main/tests/examplefiles/test.eh +315 -0
  304. data/vendor/pygments-main/tests/examplefiles/test.erl +169 -0
  305. data/vendor/pygments-main/tests/examplefiles/test.evoque +33 -0
  306. data/vendor/pygments-main/tests/examplefiles/test.fan +818 -0
  307. data/vendor/pygments-main/tests/examplefiles/test.flx +57 -0
  308. data/vendor/pygments-main/tests/examplefiles/test.gdc +13 -0
  309. data/vendor/pygments-main/tests/examplefiles/test.groovy +97 -0
  310. data/vendor/pygments-main/tests/examplefiles/test.html +339 -0
  311. data/vendor/pygments-main/tests/examplefiles/test.ini +10 -0
  312. data/vendor/pygments-main/tests/examplefiles/test.java +653 -0
  313. data/vendor/pygments-main/tests/examplefiles/test.jsp +24 -0
  314. data/vendor/pygments-main/tests/examplefiles/test.maql +45 -0
  315. data/vendor/pygments-main/tests/examplefiles/test.mod +374 -0
  316. data/vendor/pygments-main/tests/examplefiles/test.moo +51 -0
  317. data/vendor/pygments-main/tests/examplefiles/test.myt +166 -0
  318. data/vendor/pygments-main/tests/examplefiles/test.nim +93 -0
  319. data/vendor/pygments-main/tests/examplefiles/test.pas +743 -0
  320. data/vendor/pygments-main/tests/examplefiles/test.php +505 -0
  321. data/vendor/pygments-main/tests/examplefiles/test.plot +333 -0
  322. data/vendor/pygments-main/tests/examplefiles/test.ps1 +108 -0
  323. data/vendor/pygments-main/tests/examplefiles/test.pypylog +1839 -0
  324. data/vendor/pygments-main/tests/examplefiles/test.r3 +94 -0
  325. data/vendor/pygments-main/tests/examplefiles/test.rb +177 -0
  326. data/vendor/pygments-main/tests/examplefiles/test.rhtml +43 -0
  327. data/vendor/pygments-main/tests/examplefiles/test.scaml +8 -0
  328. data/vendor/pygments-main/tests/examplefiles/test.ssp +12 -0
  329. data/vendor/pygments-main/tests/examplefiles/test.tcsh +830 -0
  330. data/vendor/pygments-main/tests/examplefiles/test.vb +407 -0
  331. data/vendor/pygments-main/tests/examplefiles/test.vhdl +161 -0
  332. data/vendor/pygments-main/tests/examplefiles/test.xqy +138 -0
  333. data/vendor/pygments-main/tests/examplefiles/test.xsl +23 -0
  334. data/vendor/pygments-main/tests/examplefiles/truncated.pytb +15 -0
  335. data/vendor/pygments-main/tests/examplefiles/type.lisp +1202 -0
  336. data/vendor/pygments-main/tests/examplefiles/underscore.coffee +603 -0
  337. data/vendor/pygments-main/tests/examplefiles/unicode.applescript +5 -0
  338. data/vendor/pygments-main/tests/examplefiles/unicodedoc.py +11 -0
  339. data/vendor/pygments-main/tests/examplefiles/webkit-transition.css +3 -0
  340. data/vendor/pygments-main/tests/examplefiles/while.pov +13 -0
  341. data/vendor/pygments-main/tests/examplefiles/wiki.factor +384 -0
  342. data/vendor/pygments-main/tests/examplefiles/xml_example +1897 -0
  343. data/vendor/pygments-main/tests/examplefiles/zmlrpc.f90 +798 -0
  344. data/vendor/pygments-main/tests/old_run.py +138 -0
  345. data/vendor/pygments-main/tests/run.py +48 -0
  346. data/vendor/pygments-main/tests/support.py +15 -0
  347. data/vendor/pygments-main/tests/test_basic_api.py +294 -0
  348. data/vendor/pygments-main/tests/test_clexer.py +31 -0
  349. data/vendor/pygments-main/tests/test_cmdline.py +105 -0
  350. data/vendor/pygments-main/tests/test_examplefiles.py +97 -0
  351. data/vendor/pygments-main/tests/test_html_formatter.py +162 -0
  352. data/vendor/pygments-main/tests/test_latex_formatter.py +55 -0
  353. data/vendor/pygments-main/tests/test_perllexer.py +137 -0
  354. data/vendor/pygments-main/tests/test_regexlexer.py +47 -0
  355. data/vendor/pygments-main/tests/test_token.py +46 -0
  356. data/vendor/pygments-main/tests/test_using_api.py +40 -0
  357. data/vendor/pygments-main/tests/test_util.py +116 -0
  358. data/vendor/simplejson/.gitignore +10 -0
  359. data/vendor/simplejson/.travis.yml +5 -0
  360. data/vendor/simplejson/CHANGES.txt +291 -0
  361. data/vendor/simplejson/LICENSE.txt +19 -0
  362. data/vendor/simplejson/MANIFEST.in +5 -0
  363. data/vendor/simplejson/README.rst +19 -0
  364. data/vendor/simplejson/conf.py +179 -0
  365. data/vendor/simplejson/index.rst +628 -0
  366. data/vendor/simplejson/scripts/make_docs.py +18 -0
  367. data/vendor/simplejson/setup.py +104 -0
  368. data/vendor/simplejson/simplejson/__init__.py +510 -0
  369. data/vendor/simplejson/simplejson/_speedups.c +2745 -0
  370. data/vendor/simplejson/simplejson/decoder.py +425 -0
  371. data/vendor/simplejson/simplejson/encoder.py +567 -0
  372. data/vendor/simplejson/simplejson/ordered_dict.py +119 -0
  373. data/vendor/simplejson/simplejson/scanner.py +77 -0
  374. data/vendor/simplejson/simplejson/tests/__init__.py +67 -0
  375. data/vendor/simplejson/simplejson/tests/test_bigint_as_string.py +55 -0
  376. data/vendor/simplejson/simplejson/tests/test_check_circular.py +30 -0
  377. data/vendor/simplejson/simplejson/tests/test_decimal.py +66 -0
  378. data/vendor/simplejson/simplejson/tests/test_decode.py +83 -0
  379. data/vendor/simplejson/simplejson/tests/test_default.py +9 -0
  380. data/vendor/simplejson/simplejson/tests/test_dump.py +67 -0
  381. data/vendor/simplejson/simplejson/tests/test_encode_basestring_ascii.py +46 -0
  382. data/vendor/simplejson/simplejson/tests/test_encode_for_html.py +32 -0
  383. data/vendor/simplejson/simplejson/tests/test_errors.py +34 -0
  384. data/vendor/simplejson/simplejson/tests/test_fail.py +91 -0
  385. data/vendor/simplejson/simplejson/tests/test_float.py +19 -0
  386. data/vendor/simplejson/simplejson/tests/test_indent.py +86 -0
  387. data/vendor/simplejson/simplejson/tests/test_item_sort_key.py +20 -0
  388. data/vendor/simplejson/simplejson/tests/test_namedtuple.py +121 -0
  389. data/vendor/simplejson/simplejson/tests/test_pass1.py +76 -0
  390. data/vendor/simplejson/simplejson/tests/test_pass2.py +14 -0
  391. data/vendor/simplejson/simplejson/tests/test_pass3.py +20 -0
  392. data/vendor/simplejson/simplejson/tests/test_recursion.py +67 -0
  393. data/vendor/simplejson/simplejson/tests/test_scanstring.py +117 -0
  394. data/vendor/simplejson/simplejson/tests/test_separators.py +42 -0
  395. data/vendor/simplejson/simplejson/tests/test_speedups.py +20 -0
  396. data/vendor/simplejson/simplejson/tests/test_tuple.py +49 -0
  397. data/vendor/simplejson/simplejson/tests/test_unicode.py +109 -0
  398. data/vendor/simplejson/simplejson/tool.py +39 -0
  399. metadata +492 -0
@@ -0,0 +1,115 @@
1
+ Pygments is written and maintained by Georg Brandl <georg@python.org>.
2
+
3
+ Major developers are Tim Hatch <tim@timhatch.com> and Armin Ronacher
4
+ <armin.ronacher@active-4.com>.
5
+
6
+ Other contributors, listed alphabetically, are:
7
+
8
+ * Sam Aaron -- Ioke lexer
9
+ * Kumar Appaiah -- Debian control lexer
10
+ * Ali Afshar -- image formatter
11
+ * Andreas Amann -- AppleScript lexer
12
+ * Jeremy Ashkenas -- CoffeeScript lexer
13
+ * Stefan Matthias Aust -- Smalltalk lexer
14
+ * Ben Bangert -- Mako lexers
15
+ * Max Battcher -- Darcs patch lexer
16
+ * Paul Baumgart, 280 North, Inc. -- Objective-J lexer
17
+ * Michael Bayer -- Myghty lexers
18
+ * John Benediktsson -- Factor lexer
19
+ * Christopher Bertels -- Fancy lexer
20
+ * Jarrett Billingsley -- MiniD lexer
21
+ * Adam Blinkinsop -- Haskell, Redcode lexers
22
+ * Frits van Bommel -- assembler lexers
23
+ * Pierre Bourdon -- bugfixes
24
+ * Hiram Chirino -- Scaml and Jade lexers
25
+ * Leaf Corcoran -- MoonScript lexer
26
+ * Christopher Creutzig -- MuPAD lexer
27
+ * Pete Curry -- bugfixes
28
+ * Owen Durni -- haXe lexer
29
+ * Nick Efford -- Python 3 lexer
30
+ * Artem Egorkine -- terminal256 formatter
31
+ * James H. Fisher -- PostScript lexer
32
+ * Carlos Galdino -- Elixir and Elixir Console lexers
33
+ * Naveen Garg -- Autohotkey lexer
34
+ * Laurent Gautier -- R/S lexer
35
+ * Alex Gaynor -- PyPy log lexer
36
+ * Bertrand Goetzmann -- Groovy lexer
37
+ * Krzysiek Goj -- Scala lexer
38
+ * Matt Good -- Genshi, Cheetah lexers
39
+ * Patrick Gotthardt -- PHP namespaces support
40
+ * Olivier Guibe -- Asymptote lexer
41
+ * Martin Harriman -- SNOBOL lexer
42
+ * Matthew Harrison -- SVG formatter
43
+ * Steven Hazel -- Tcl lexer
44
+ * Aslak Hellesøy -- Gherkin lexer
45
+ * Jordi Gutiérrez Hermoso -- Octave lexer
46
+ * David Hess, Fish Software, Inc. -- Objective-J lexer
47
+ * Varun Hiremath -- Debian control lexer
48
+ * Ben Hollis -- Mason lexer
49
+ * Tim Howard -- BlitzMax lexer
50
+ * Ivan Inozemtsev -- Fantom lexer
51
+ * Brian R. Jackson -- Tea lexer
52
+ * Dennis Kaarsemaker -- sources.list lexer
53
+ * Igor Kalnitsky -- vhdl lexer
54
+ * Adam Koprowski -- Opa lexer
55
+ * Benjamin Kowarsch -- Modula-2 lexer
56
+ * Marek Kubica -- Scheme lexer
57
+ * Jochen Kupperschmidt -- Markdown processor
58
+ * Gerd Kurzbach -- Modelica lexer
59
+ * Olov Lassus -- Dart lexer
60
+ * Sylvestre Ledru -- Scilab lexer
61
+ * Mark Lee -- Vala lexer
62
+ * Ben Mabey -- Gherkin lexer
63
+ * Simone Margaritelli -- Hybris lexer
64
+ * Kirk McDonald -- D lexer
65
+ * Gordon McGregor -- SystemVerilog lexer
66
+ * Stephen McKamey -- Duel/JBST lexer
67
+ * Brian McKenna -- F# lexer
68
+ * Lukas Meuser -- BBCode formatter, Lua lexer
69
+ * Hong Minhee -- HTTP lexer
70
+ * Michael Mior -- Awk lexer
71
+ * Paulo Moura -- Logtalk lexer
72
+ * Mher Movsisyan -- DTD lexer
73
+ * Ana Nelson -- Ragel, ANTLR, R console lexers
74
+ * Nam T. Nguyen -- Monokai style
75
+ * Jesper Noehr -- HTML formatter "anchorlinenos"
76
+ * Mike Nolta -- Julia lexer
77
+ * Jonas Obrist -- BBCode lexer
78
+ * David Oliva -- Rebol lexer
79
+ * Jon Parise -- Protocol buffers lexer
80
+ * Ronny Pfannschmidt -- BBCode lexer
81
+ * Benjamin Peterson -- Test suite refactoring
82
+ * Dominik Picheta -- Nimrod lexer
83
+ * Clément Prévost -- UrbiScript lexer
84
+ * Justin Reidy -- MXML lexer
85
+ * Norman Richards -- JSON lexer
86
+ * Lubomir Rintel -- GoodData MAQL and CL lexers
87
+ * Andre Roberge -- Tango style
88
+ * Konrad Rudolph -- LaTeX formatter enhancements
89
+ * Mario Ruggier -- Evoque lexers
90
+ * Stou Sandalski -- NumPy, FORTRAN, tcsh and XSLT lexers
91
+ * Matteo Sasso -- Common Lisp lexer
92
+ * Joe Schafer -- Ada lexer
93
+ * Ken Schutte -- Matlab lexers
94
+ * Tassilo Schweyer -- Io, MOOCode lexers
95
+ * Joerg Sieker -- ABAP lexer
96
+ * Robert Simmons -- Standard ML lexer
97
+ * Kirill Simonov -- YAML lexer
98
+ * Steve Spigarelli -- XQuery lexer
99
+ * Jerome St-Louis -- eC lexer
100
+ * James Strachan -- Kotlin lexer
101
+ * Tiberius Teng -- default style overhaul
102
+ * Jeremy Thurgood -- Erlang, Squid config lexers
103
+ * Erick Tryzelaar -- Felix lexer
104
+ * Daniele Varrazzo -- PostgreSQL lexers
105
+ * Abe Voelker -- OpenEdge ABL lexer
106
+ * Whitney Young -- ObjectiveC lexer
107
+ * Matthias Vallentin -- Bro lexer
108
+ * Nathan Weizenbaum -- Haml and Sass lexers
109
+ * Dietmar Winkler -- Modelica lexer
110
+ * Nils Winter -- Smalltalk lexer
111
+ * Davy Wybiral -- Clojure lexer
112
+ * Diego Zamboni -- CFengine3 lexer
113
+ * Alex Zimin -- Nemerle lexer
114
+
115
+ Many thanks for all contributions!
@@ -0,0 +1,762 @@
1
+ Pygments changelog
2
+ ==================
3
+
4
+ Issue numbers refer to the tracker at
5
+ http://bitbucket.org/birkenfeld/pygments-main/issues.
6
+
7
+ Version 1.6
8
+ -----------
9
+ (in development)
10
+
11
+ - Lexers added:
12
+
13
+ * Julia (PR#61)
14
+
15
+ - Fix Template Haskell highlighting (PR#63)
16
+
17
+
18
+ Version 1.5
19
+ -----------
20
+ (codename Zeitdilatation, released Mar 10, 2012)
21
+
22
+ - Lexers added:
23
+
24
+ * Awk (#630)
25
+ * Fancy (#633)
26
+ * PyPy Log
27
+ * eC
28
+ * Nimrod
29
+ * Nemerle (#667)
30
+ * F# (#353)
31
+ * Groovy (#501)
32
+ * PostgreSQL (#660)
33
+ * DTD
34
+ * Gosu (#634)
35
+ * Octave (PR#22)
36
+ * Standard ML (PR#14)
37
+ * CFengine3 (#601)
38
+ * Opa (PR#37)
39
+ * HTTP sessions (PR#42)
40
+ * JSON (PR#31)
41
+ * SNOBOL (PR#30)
42
+ * MoonScript (PR#43)
43
+ * ECL (PR#29)
44
+ * Urbiscript (PR#17)
45
+ * OpenEdge ABL (PR#27)
46
+ * SystemVerilog (PR#35)
47
+ * Coq (#734)
48
+ * PowerShell (#654)
49
+ * Dart (#715)
50
+ * Fantom (PR#36)
51
+ * Bro (PR#5)
52
+ * NewLISP (PR#26)
53
+ * VHDL (PR#45)
54
+ * Scilab (#740)
55
+ * Elixir (PR#57)
56
+ * Tea (PR#56)
57
+ * Kotlin (PR#58)
58
+
59
+ - Fix Python 3 terminal highlighting with pygmentize (#691).
60
+
61
+ - In the LaTeX formatter, escape special &, < and > chars (#648).
62
+
63
+ - In the LaTeX formatter, fix display problems for styles with token
64
+ background colors (#670).
65
+
66
+ - Enhancements to the Squid conf lexer (#664).
67
+
68
+ - Several fixes to the reStructuredText lexer (#636).
69
+
70
+ - Recognize methods in the ObjC lexer (#638).
71
+
72
+ - Fix Lua "class" highlighting: it does not have classes (#665).
73
+
74
+ - Fix degenerate regex in Scala lexer (#671) and highlighting bugs (#713, 708).
75
+
76
+ - Fix number pattern order in Ocaml lexer (#647).
77
+
78
+ - Fix generic type highlighting in ActionScript 3 (#666).
79
+
80
+ - Fixes to the Clojure lexer (PR#9).
81
+
82
+ - Fix degenerate regex in Nemerle lexer (#706).
83
+
84
+ - Fix infinite looping in CoffeeScript lexer (#729).
85
+
86
+ - Fix crashes and analysis with ObjectiveC lexer (#693, #696).
87
+
88
+ - Add some Fortran 2003 keywords.
89
+
90
+ - Fix Boo string regexes (#679).
91
+
92
+ - Add "rrt" style (#727).
93
+
94
+ - Fix infinite looping in Darcs Patch lexer.
95
+
96
+ - Lots of misc fixes to character-eating bugs and ordering problems in many
97
+ different lexers.
98
+
99
+
100
+ Version 1.4
101
+ -----------
102
+ (codename Unschärfe, released Jan 03, 2011)
103
+
104
+ - Lexers added:
105
+
106
+ * Factor (#520)
107
+ * PostScript (#486)
108
+ * Verilog (#491)
109
+ * BlitzMax Basic (#478)
110
+ * Ioke (#465)
111
+ * Java properties, split out of the INI lexer (#445)
112
+ * Scss (#509)
113
+ * Duel/JBST
114
+ * XQuery (#617)
115
+ * Mason (#615)
116
+ * GoodData (#609)
117
+ * SSP (#473)
118
+ * Autohotkey (#417)
119
+ * Google Protocol Buffers
120
+ * Hybris (#506)
121
+
122
+ - Do not fail in analyse_text methods (#618).
123
+
124
+ - Performance improvements in the HTML formatter (#523).
125
+
126
+ - With the ``noclasses`` option in the HTML formatter, some styles
127
+ present in the stylesheet were not added as inline styles.
128
+
129
+ - Four fixes to the Lua lexer (#480, #481, #482, #497).
130
+
131
+ - More context-sensitive Gherkin lexer with support for more i18n translations.
132
+
133
+ - Support new OO keywords in Matlab lexer (#521).
134
+
135
+ - Small fix in the CoffeeScript lexer (#519).
136
+
137
+ - A bugfix for backslashes in ocaml strings (#499).
138
+
139
+ - Fix unicode/raw docstrings in the Python lexer (#489).
140
+
141
+ - Allow PIL to work without PIL.pth (#502).
142
+
143
+ - Allow seconds as a unit in CSS (#496).
144
+
145
+ - Support ``application/javascript`` as a JavaScript mime type (#504).
146
+
147
+ - Support `Offload <http://offload.codeplay.com>`_ C++ Extensions as
148
+ keywords in the C++ lexer (#484).
149
+
150
+ - Escape more characters in LaTeX output (#505).
151
+
152
+ - Update Haml/Sass lexers to version 3 (#509).
153
+
154
+ - Small PHP lexer string escaping fix (#515).
155
+
156
+ - Support comments before preprocessor directives, and unsigned/
157
+ long long literals in C/C++ (#613, #616).
158
+
159
+ - Support line continuations in the INI lexer (#494).
160
+
161
+ - Fix lexing of Dylan string and char literals (#628).
162
+
163
+ - Fix class/procedure name highlighting in VB.NET lexer (#624).
164
+
165
+
166
+ Version 1.3.1
167
+ -------------
168
+ (bugfix release, released Mar 05, 2010)
169
+
170
+ - The ``pygmentize`` script was missing from the distribution.
171
+
172
+
173
+ Version 1.3
174
+ -----------
175
+ (codename Schneeglöckchen, released Mar 01, 2010)
176
+
177
+ - Added the ``ensurenl`` lexer option, which can be used to suppress the
178
+ automatic addition of a newline to the lexer input.
179
+
180
+ - Lexers added:
181
+
182
+ * Ada
183
+ * Coldfusion
184
+ * Modula-2
185
+ * haXe
186
+ * R console
187
+ * Objective-J
188
+ * Haml and Sass
189
+ * CoffeeScript
190
+
191
+ - Enhanced reStructuredText highlighting.
192
+
193
+ - Added support for PHP 5.3 namespaces in the PHP lexer.
194
+
195
+ - Added a bash completion script for `pygmentize`, to the external/
196
+ directory (#466).
197
+
198
+ - Fixed a bug in `do_insertions()` used for multi-lexer languages.
199
+
200
+ - Fixed a Ruby regex highlighting bug (#476).
201
+
202
+ - Fixed regex highlighting bugs in Perl lexer (#258).
203
+
204
+ - Add small enhancements to the C lexer (#467) and Bash lexer (#469).
205
+
206
+ - Small fixes for the Tcl, Debian control file, Nginx config,
207
+ Smalltalk, Objective-C, Clojure, Lua lexers.
208
+
209
+ - Gherkin lexer: Fixed single apostrophe bug and added new i18n keywords.
210
+
211
+
212
+ Version 1.2.2
213
+ -------------
214
+ (bugfix release, released Jan 02, 2010)
215
+
216
+ * Removed a backwards incompatibility in the LaTeX formatter that caused
217
+ Sphinx to produce invalid commands when writing LaTeX output (#463).
218
+
219
+ * Fixed a forever-backtracking regex in the BashLexer (#462).
220
+
221
+
222
+ Version 1.2.1
223
+ -------------
224
+ (bugfix release, released Jan 02, 2010)
225
+
226
+ * Fixed mishandling of an ellipsis in place of the frames in a Python
227
+ console traceback, resulting in clobbered output.
228
+
229
+
230
+ Version 1.2
231
+ -----------
232
+ (codename Neujahr, released Jan 01, 2010)
233
+
234
+ - Dropped Python 2.3 compatibility.
235
+
236
+ - Lexers added:
237
+
238
+ * Asymptote
239
+ * Go
240
+ * Gherkin (Cucumber)
241
+ * CMake
242
+ * Ooc
243
+ * Coldfusion
244
+ * haXe
245
+ * R console
246
+
247
+ - Added options for rendering LaTeX in source code comments in the
248
+ LaTeX formatter (#461).
249
+
250
+ - Updated the Logtalk lexer.
251
+
252
+ - Added `line_number_start` option to image formatter (#456).
253
+
254
+ - Added `hl_lines` and `hl_color` options to image formatter (#457).
255
+
256
+ - Fixed the HtmlFormatter's handling of noclasses=True to not output any
257
+ classes (#427).
258
+
259
+ - Added the Monokai style (#453).
260
+
261
+ - Fixed LLVM lexer identifier syntax and added new keywords (#442).
262
+
263
+ - Fixed the PythonTracebackLexer to handle non-traceback data in header or
264
+ trailer, and support more partial tracebacks that start on line 2 (#437).
265
+
266
+ - Fixed the CLexer to not highlight ternary statements as labels.
267
+
268
+ - Fixed lexing of some Ruby quoting peculiarities (#460).
269
+
270
+ - A few ASM lexer fixes (#450).
271
+
272
+
273
+ Version 1.1.1
274
+ -------------
275
+ (bugfix release, released Sep 15, 2009)
276
+
277
+ - Fixed the BBCode lexer (#435).
278
+
279
+ - Added support for new Jinja2 keywords.
280
+
281
+ - Fixed test suite failures.
282
+
283
+ - Added Gentoo-specific suffixes to Bash lexer.
284
+
285
+
286
+ Version 1.1
287
+ -----------
288
+ (codename Brillouin, released Sep 11, 2009)
289
+
290
+ - Ported Pygments to Python 3. This needed a few changes in the way
291
+ encodings are handled; they may affect corner cases when used with
292
+ Python 2 as well.
293
+
294
+ - Lexers added:
295
+
296
+ * Antlr/Ragel, thanks to Ana Nelson
297
+ * (Ba)sh shell
298
+ * Erlang shell
299
+ * GLSL
300
+ * Prolog
301
+ * Evoque
302
+ * Modelica
303
+ * Rebol
304
+ * MXML
305
+ * Cython
306
+ * ABAP
307
+ * ASP.net (VB/C#)
308
+ * Vala
309
+ * Newspeak
310
+
311
+ - Fixed the LaTeX formatter's output so that output generated for one style
312
+ can be used with the style definitions of another (#384).
313
+
314
+ - Added "anchorlinenos" and "noclobber_cssfile" (#396) options to HTML
315
+ formatter.
316
+
317
+ - Support multiline strings in Lua lexer.
318
+
319
+ - Rewrite of the JavaScript lexer by Pumbaa80 to better support regular
320
+ expression literals (#403).
321
+
322
+ - When pygmentize is asked to highlight a file for which multiple lexers
323
+ match the filename, use the analyse_text guessing engine to determine the
324
+ winner (#355).
325
+
326
+ - Fixed minor bugs in the JavaScript lexer (#383), the Matlab lexer (#378),
327
+ the Scala lexer (#392), the INI lexer (#391), the Clojure lexer (#387)
328
+ and the AS3 lexer (#389).
329
+
330
+ - Fixed three Perl heredoc lexing bugs (#379, #400, #422).
331
+
332
+ - Fixed a bug in the image formatter which misdetected lines (#380).
333
+
334
+ - Fixed bugs lexing extended Ruby strings and regexes.
335
+
336
+ - Fixed a bug when lexing git diffs.
337
+
338
+ - Fixed a bug lexing the empty commit in the PHP lexer (#405).
339
+
340
+ - Fixed a bug causing Python numbers to be mishighlighted as floats (#397).
341
+
342
+ - Fixed a bug when backslashes are used in odd locations in Python (#395).
343
+
344
+ - Fixed various bugs in Matlab and S-Plus lexers, thanks to Winston Chang (#410,
345
+ #411, #413, #414) and fmarc (#419).
346
+
347
+ - Fixed a bug in Haskell single-line comment detection (#426).
348
+
349
+ - Added new-style reStructuredText directive for docutils 0.5+ (#428).
350
+
351
+
352
+ Version 1.0
353
+ -----------
354
+ (codename Dreiundzwanzig, released Nov 23, 2008)
355
+
356
+ - Don't use join(splitlines()) when converting newlines to ``\n``,
357
+ because that doesn't keep all newlines at the end when the
358
+ ``stripnl`` lexer option is False.
359
+
360
+ - Added ``-N`` option to command-line interface to get a lexer name
361
+ for a given filename.
362
+
363
+ - Added Tango style, written by Andre Roberge for the Crunchy project.
364
+
365
+ - Added Python3TracebackLexer and ``python3`` option to
366
+ PythonConsoleLexer.
367
+
368
+ - Fixed a few bugs in the Haskell lexer.
369
+
370
+ - Fixed PythonTracebackLexer to be able to recognize SyntaxError and
371
+ KeyboardInterrupt (#360).
372
+
373
+ - Provide one formatter class per image format, so that surprises like::
374
+
375
+ pygmentize -f gif -o foo.gif foo.py
376
+
377
+ creating a PNG file are avoided.
378
+
379
+ - Actually use the `font_size` option of the image formatter.
380
+
381
+ - Fixed numpy lexer that it doesn't listen for `*.py` any longer.
382
+
383
+ - Fixed HTML formatter so that text options can be Unicode
384
+ strings (#371).
385
+
386
+ - Unified Diff lexer supports the "udiff" alias now.
387
+
388
+ - Fixed a few issues in Scala lexer (#367).
389
+
390
+ - RubyConsoleLexer now supports simple prompt mode (#363).
391
+
392
+ - JavascriptLexer is smarter about what constitutes a regex (#356).
393
+
394
+ - Add Applescript lexer, thanks to Andreas Amann (#330).
395
+
396
+ - Make the codetags more strict about matching words (#368).
397
+
398
+ - NginxConfLexer is a little more accurate on mimetypes and
399
+ variables (#370).
400
+
401
+
402
+ Version 0.11.1
403
+ --------------
404
+ (released Aug 24, 2008)
405
+
406
+ - Fixed a Jython compatibility issue in pygments.unistring (#358).
407
+
408
+
409
+ Version 0.11
410
+ ------------
411
+ (codename Straußenei, released Aug 23, 2008)
412
+
413
+ Many thanks go to Tim Hatch for writing or integrating most of the bug
414
+ fixes and new features.
415
+
416
+ - Lexers added:
417
+
418
+ * Nasm-style assembly language, thanks to delroth
419
+ * YAML, thanks to Kirill Simonov
420
+ * ActionScript 3, thanks to Pierre Bourdon
421
+ * Cheetah/Spitfire templates, thanks to Matt Good
422
+ * Lighttpd config files
423
+ * Nginx config files
424
+ * Gnuplot plotting scripts
425
+ * Clojure
426
+ * POV-Ray scene files
427
+ * Sqlite3 interactive console sessions
428
+ * Scala source files, thanks to Krzysiek Goj
429
+
430
+ - Lexers improved:
431
+
432
+ * C lexer highlights standard library functions now and supports C99
433
+ types.
434
+ * Bash lexer now correctly highlights heredocs without preceding
435
+ whitespace.
436
+ * Vim lexer now highlights hex colors properly and knows a couple
437
+ more keywords.
438
+ * Irc logs lexer now handles xchat's default time format (#340) and
439
+ correctly highlights lines ending in ``>``.
440
+ * Support more delimiters for perl regular expressions (#258).
441
+ * ObjectiveC lexer now supports 2.0 features.
442
+
443
+ - Added "Visual Studio" style.
444
+
445
+ - Updated markdown processor to Markdown 1.7.
446
+
447
+ - Support roman/sans/mono style defs and use them in the LaTeX
448
+ formatter.
449
+
450
+ - The RawTokenFormatter is no longer registered to ``*.raw`` and it's
451
+ documented that tokenization with this lexer may raise exceptions.
452
+
453
+ - New option ``hl_lines`` to HTML formatter, to highlight certain
454
+ lines.
455
+
456
+ - New option ``prestyles`` to HTML formatter.
457
+
458
+ - New option *-g* to pygmentize, to allow lexer guessing based on
459
+ filetext (can be slowish, so file extensions are still checked
460
+ first).
461
+
462
+ - ``guess_lexer()`` now makes its decision much faster due to a cache
463
+ of whether data is xml-like (a check which is used in several
464
+ versions of ``analyse_text()``. Several lexers also have more
465
+ accurate ``analyse_text()`` now.
466
+
467
+
468
+ Version 0.10
469
+ ------------
470
+ (codename Malzeug, released May 06, 2008)
471
+
472
+ - Lexers added:
473
+
474
+ * Io
475
+ * Smalltalk
476
+ * Darcs patches
477
+ * Tcl
478
+ * Matlab
479
+ * Matlab sessions
480
+ * FORTRAN
481
+ * XSLT
482
+ * tcsh
483
+ * NumPy
484
+ * Python 3
485
+ * S, S-plus, R statistics languages
486
+ * Logtalk
487
+
488
+ - In the LatexFormatter, the *commandprefix* option is now by default
489
+ 'PY' instead of 'C', since the latter resulted in several collisions
490
+ with other packages. Also, the special meaning of the *arg*
491
+ argument to ``get_style_defs()`` was removed.
492
+
493
+ - Added ImageFormatter, to format code as PNG, JPG, GIF or BMP.
494
+ (Needs the Python Imaging Library.)
495
+
496
+ - Support doc comments in the PHP lexer.
497
+
498
+ - Handle format specifications in the Perl lexer.
499
+
500
+ - Fix comment handling in the Batch lexer.
501
+
502
+ - Add more file name extensions for the C++, INI and XML lexers.
503
+
504
+ - Fixes in the IRC and MuPad lexers.
505
+
506
+ - Fix function and interface name highlighting in the Java lexer.
507
+
508
+ - Fix at-rule handling in the CSS lexer.
509
+
510
+ - Handle KeyboardInterrupts gracefully in pygmentize.
511
+
512
+ - Added BlackWhiteStyle.
513
+
514
+ - Bash lexer now correctly highlights math, does not require
515
+ whitespace after semicolons, and correctly highlights boolean
516
+ operators.
517
+
518
+ - Makefile lexer is now capable of handling BSD and GNU make syntax.
519
+
520
+
521
+ Version 0.9
522
+ -----------
523
+ (codename Herbstzeitlose, released Oct 14, 2007)
524
+
525
+ - Lexers added:
526
+
527
+ * Erlang
528
+ * ActionScript
529
+ * Literate Haskell
530
+ * Common Lisp
531
+ * Various assembly languages
532
+ * Gettext catalogs
533
+ * Squid configuration
534
+ * Debian control files
535
+ * MySQL-style SQL
536
+ * MOOCode
537
+
538
+ - Lexers improved:
539
+
540
+ * Greatly improved the Haskell and OCaml lexers.
541
+ * Improved the Bash lexer's handling of nested constructs.
542
+ * The C# and Java lexers exhibited abysmal performance with some
543
+ input code; this should now be fixed.
544
+ * The IRC logs lexer is now able to colorize weechat logs too.
545
+ * The Lua lexer now recognizes multi-line comments.
546
+ * Fixed bugs in the D and MiniD lexer.
547
+
548
+ - The encoding handling of the command line mode (pygmentize) was
549
+ enhanced. You shouldn't get UnicodeErrors from it anymore if you
550
+ don't give an encoding option.
551
+
552
+ - Added a ``-P`` option to the command line mode which can be used to
553
+ give options whose values contain commas or equals signs.
554
+
555
+ - Added 256-color terminal formatter.
556
+
557
+ - Added an experimental SVG formatter.
558
+
559
+ - Added the ``lineanchors`` option to the HTML formatter, thanks to
560
+ Ian Charnas for the idea.
561
+
562
+ - Gave the line numbers table a CSS class in the HTML formatter.
563
+
564
+ - Added a Vim 7-like style.
565
+
566
+
567
+ Version 0.8.1
568
+ -------------
569
+ (released Jun 27, 2007)
570
+
571
+ - Fixed POD highlighting in the Ruby lexer.
572
+
573
+ - Fixed Unicode class and namespace name highlighting in the C# lexer.
574
+
575
+ - Fixed Unicode string prefix highlighting in the Python lexer.
576
+
577
+ - Fixed a bug in the D and MiniD lexers.
578
+
579
+ - Fixed the included MoinMoin parser.
580
+
581
+
582
+ Version 0.8
583
+ -----------
584
+ (codename Maikäfer, released May 30, 2007)
585
+
586
+ - Lexers added:
587
+
588
+ * Haskell, thanks to Adam Blinkinsop
589
+ * Redcode, thanks to Adam Blinkinsop
590
+ * D, thanks to Kirk McDonald
591
+ * MuPad, thanks to Christopher Creutzig
592
+ * MiniD, thanks to Jarrett Billingsley
593
+ * Vim Script, by Tim Hatch
594
+
595
+ - The HTML formatter now has a second line-numbers mode in which it
596
+ will just integrate the numbers in the same ``<pre>`` tag as the
597
+ code.
598
+
599
+ - The `CSharpLexer` now is Unicode-aware, which means that it has an
600
+ option that can be set so that it correctly lexes Unicode
601
+ identifiers allowed by the C# specs.
602
+
603
+ - Added a `RaiseOnErrorTokenFilter` that raises an exception when the
604
+ lexer generates an error token, and a `VisibleWhitespaceFilter` that
605
+ converts whitespace (spaces, tabs, newlines) into visible
606
+ characters.
607
+
608
+ - Fixed the `do_insertions()` helper function to yield correct
609
+ indices.
610
+
611
+ - The ReST lexer now automatically highlights source code blocks in
612
+ ".. sourcecode:: language" and ".. code:: language" directive
613
+ blocks.
614
+
615
+ - Improved the default style (thanks to Tiberius Teng). The old
616
+ default is still available as the "emacs" style (which was an alias
617
+ before).
618
+
619
+ - The `get_style_defs` method of HTML formatters now uses the
620
+ `cssclass` option as the default selector if it was given.
621
+
622
+ - Improved the ReST and Bash lexers a bit.
623
+
624
+ - Fixed a few bugs in the Makefile and Bash lexers, thanks to Tim
625
+ Hatch.
626
+
627
+ - Fixed a bug in the command line code that disallowed ``-O`` options
628
+ when using the ``-S`` option.
629
+
630
+ - Fixed a bug in the `RawTokenFormatter`.
631
+
632
+
633
+ Version 0.7.1
634
+ -------------
635
+ (released Feb 15, 2007)
636
+
637
+ - Fixed little highlighting bugs in the Python, Java, Scheme and
638
+ Apache Config lexers.
639
+
640
+ - Updated the included manpage.
641
+
642
+ - Included a built version of the documentation in the source tarball.
643
+
644
+
645
+ Version 0.7
646
+ -----------
647
+ (codename Faschingskrapfn, released Feb 14, 2007)
648
+
649
+ - Added a MoinMoin parser that uses Pygments. With it, you get
650
+ Pygments highlighting in Moin Wiki pages.
651
+
652
+ - Changed the exception raised if no suitable lexer, formatter etc. is
653
+ found in one of the `get_*_by_*` functions to a custom exception,
654
+ `pygments.util.ClassNotFound`. It is, however, a subclass of
655
+ `ValueError` in order to retain backwards compatibility.
656
+
657
+ - Added a `-H` command line option which can be used to get the
658
+ docstring of a lexer, formatter or filter.
659
+
660
+ - Made the handling of lexers and formatters more consistent. The
661
+ aliases and filename patterns of formatters are now attributes on
662
+ them.
663
+
664
+ - Added an OCaml lexer, thanks to Adam Blinkinsop.
665
+
666
+ - Made the HTML formatter more flexible, and easily subclassable in
667
+ order to make it easy to implement custom wrappers, e.g. alternate
668
+ line number markup. See the documentation.
669
+
670
+ - Added an `outencoding` option to all formatters, making it possible
671
+ to override the `encoding` (which is used by lexers and formatters)
672
+ when using the command line interface. Also, if using the terminal
673
+ formatter and the output file is a terminal and has an encoding
674
+ attribute, use it if no encoding is given.
675
+
676
+ - Made it possible to just drop style modules into the `styles`
677
+ subpackage of the Pygments installation.
678
+
679
+ - Added a "state" keyword argument to the `using` helper.
680
+
681
+ - Added a `commandprefix` option to the `LatexFormatter` which allows
682
+ to control how the command names are constructed.
683
+
684
+ - Added quite a few new lexers, thanks to Tim Hatch:
685
+
686
+ * Java Server Pages
687
+ * Windows batch files
688
+ * Trac Wiki markup
689
+ * Python tracebacks
690
+ * ReStructuredText
691
+ * Dylan
692
+ * and the Befunge esoteric programming language (yay!)
693
+
694
+ - Added Mako lexers by Ben Bangert.
695
+
696
+ - Added "fruity" style, another dark background originally vim-based
697
+ theme.
698
+
699
+ - Added sources.list lexer by Dennis Kaarsemaker.
700
+
701
+ - Added token stream filters, and a pygmentize option to use them.
702
+
703
+ - Changed behavior of `in` Operator for tokens.
704
+
705
+ - Added mimetypes for all lexers.
706
+
707
+ - Fixed some problems lexing Python strings.
708
+
709
+ - Fixed tickets: #167, #178, #179, #180, #185, #201.
710
+
711
+
712
+ Version 0.6
713
+ -----------
714
+ (codename Zimtstern, released Dec 20, 2006)
715
+
716
+ - Added option for the HTML formatter to write the CSS to an external
717
+ file in "full document" mode.
718
+
719
+ - Added RTF formatter.
720
+
721
+ - Added Bash and Apache configuration lexers (thanks to Tim Hatch).
722
+
723
+ - Improved guessing methods for various lexers.
724
+
725
+ - Added `@media` support to CSS lexer (thanks to Tim Hatch).
726
+
727
+ - Added a Groff lexer (thanks to Tim Hatch).
728
+
729
+ - License change to BSD.
730
+
731
+ - Added lexers for the Myghty template language.
732
+
733
+ - Added a Scheme lexer (thanks to Marek Kubica).
734
+
735
+ - Added some functions to iterate over existing lexers, formatters and
736
+ lexers.
737
+
738
+ - The HtmlFormatter's `get_style_defs()` can now take a list as an
739
+ argument to generate CSS with multiple prefixes.
740
+
741
+ - Support for guessing input encoding added.
742
+
743
+ - Encoding support added: all processing is now done with Unicode
744
+ strings, input and output are converted from and optionally to byte
745
+ strings (see the ``encoding`` option of lexers and formatters).
746
+
747
+ - Some improvements in the C(++) lexers handling comments and line
748
+ continuations.
749
+
750
+
751
+ Version 0.5.1
752
+ -------------
753
+ (released Oct 30, 2006)
754
+
755
+ - Fixed traceback in ``pygmentize -L`` (thanks to Piotr Ozarowski).
756
+
757
+
758
+ Version 0.5
759
+ -----------
760
+ (codename PyKleur, released Oct 30, 2006)
761
+
762
+ - Initial public release.