gitlab-pygments.rb 0.3.2 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +71 -0
  4. data/Gemfile +1 -1
  5. data/LICENSE +17 -0
  6. data/README.md +28 -1
  7. data/Rakefile +2 -5
  8. data/lexers +0 -0
  9. data/lib/pygments/mentos.py +19 -12
  10. data/lib/pygments/popen.rb +21 -4
  11. data/lib/pygments/version.rb +1 -1
  12. data/pygments.rb.gemspec +2 -0
  13. data/test/test_pygments.rb +13 -2
  14. data/vendor/custom_lexers/github.py +206 -3
  15. data/vendor/pygments-main/AUTHORS +41 -3
  16. data/vendor/pygments-main/CHANGES +132 -5
  17. data/vendor/pygments-main/LICENSE +1 -1
  18. data/vendor/pygments-main/Makefile +1 -1
  19. data/vendor/pygments-main/REVISION +1 -1
  20. data/vendor/pygments-main/docs/generate.py +1 -1
  21. data/vendor/pygments-main/docs/src/api.txt +1 -1
  22. data/vendor/pygments-main/docs/src/index.txt +1 -1
  23. data/vendor/pygments-main/docs/src/integrate.txt +5 -0
  24. data/vendor/pygments-main/docs/src/java.txt +70 -0
  25. data/vendor/pygments-main/docs/src/lexerdevelopment.txt +52 -0
  26. data/vendor/pygments-main/external/autopygmentize +64 -0
  27. data/vendor/pygments-main/external/lasso-builtins-generator-9.lasso +144 -0
  28. data/vendor/pygments-main/external/markdown-processor.py +2 -2
  29. data/vendor/pygments-main/external/moin-parser.py +1 -1
  30. data/vendor/pygments-main/external/rst-directive-old.py +1 -1
  31. data/vendor/pygments-main/external/rst-directive.py +1 -1
  32. data/vendor/pygments-main/pygmentize +1 -1
  33. data/vendor/pygments-main/pygments/__init__.py +2 -2
  34. data/vendor/pygments-main/pygments/cmdline.py +14 -6
  35. data/vendor/pygments-main/pygments/console.py +1 -1
  36. data/vendor/pygments-main/pygments/filter.py +1 -1
  37. data/vendor/pygments-main/pygments/filters/__init__.py +3 -4
  38. data/vendor/pygments-main/pygments/formatter.py +4 -1
  39. data/vendor/pygments-main/pygments/formatters/__init__.py +1 -1
  40. data/vendor/pygments-main/pygments/formatters/_mapping.py +3 -3
  41. data/vendor/pygments-main/pygments/formatters/bbcode.py +1 -1
  42. data/vendor/pygments-main/pygments/formatters/html.py +73 -2
  43. data/vendor/pygments-main/pygments/formatters/img.py +2 -2
  44. data/vendor/pygments-main/pygments/formatters/latex.py +9 -9
  45. data/vendor/pygments-main/pygments/formatters/other.py +1 -3
  46. data/vendor/pygments-main/pygments/formatters/rtf.py +1 -1
  47. data/vendor/pygments-main/pygments/formatters/svg.py +1 -1
  48. data/vendor/pygments-main/pygments/formatters/terminal.py +1 -1
  49. data/vendor/pygments-main/pygments/formatters/terminal256.py +1 -1
  50. data/vendor/pygments-main/pygments/lexer.py +78 -10
  51. data/vendor/pygments-main/pygments/lexers/__init__.py +13 -2
  52. data/vendor/pygments-main/pygments/lexers/_asybuiltins.py +1 -1
  53. data/vendor/pygments-main/pygments/lexers/_clbuiltins.py +1 -1
  54. data/vendor/pygments-main/pygments/lexers/_lassobuiltins.py +5172 -0
  55. data/vendor/pygments-main/pygments/lexers/_luabuiltins.py +1 -1
  56. data/vendor/pygments-main/pygments/lexers/_mapping.py +92 -36
  57. data/vendor/pygments-main/pygments/lexers/_openedgebuiltins.py +562 -0
  58. data/vendor/pygments-main/pygments/lexers/_phpbuiltins.py +2 -2
  59. data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +4 -3
  60. data/vendor/pygments-main/pygments/lexers/_robotframeworklexer.py +557 -0
  61. data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +11 -0
  62. data/vendor/pygments-main/pygments/lexers/_sourcemodbuiltins.py +1072 -0
  63. data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +360 -0
  64. data/vendor/pygments-main/pygments/lexers/_vimbuiltins.py +13 -3
  65. data/vendor/pygments-main/pygments/lexers/agile.py +525 -38
  66. data/vendor/pygments-main/pygments/lexers/asm.py +45 -7
  67. data/vendor/pygments-main/pygments/lexers/compiled.py +1257 -425
  68. data/vendor/pygments-main/pygments/lexers/dalvik.py +104 -0
  69. data/vendor/pygments-main/pygments/lexers/dotnet.py +97 -62
  70. data/vendor/pygments-main/pygments/lexers/foxpro.py +428 -0
  71. data/vendor/pygments-main/pygments/lexers/functional.py +931 -32
  72. data/vendor/pygments-main/pygments/lexers/github.py +206 -3
  73. data/vendor/pygments-main/pygments/lexers/hdl.py +3 -3
  74. data/vendor/pygments-main/pygments/lexers/jvm.py +309 -44
  75. data/vendor/pygments-main/pygments/lexers/math.py +876 -30
  76. data/vendor/pygments-main/pygments/lexers/other.py +956 -517
  77. data/vendor/pygments-main/pygments/lexers/parsers.py +85 -2
  78. data/vendor/pygments-main/pygments/lexers/shell.py +81 -18
  79. data/vendor/pygments-main/pygments/lexers/special.py +1 -1
  80. data/vendor/pygments-main/pygments/lexers/sql.py +2 -2
  81. data/vendor/pygments-main/pygments/lexers/templates.py +119 -8
  82. data/vendor/pygments-main/pygments/lexers/text.py +155 -15
  83. data/vendor/pygments-main/pygments/lexers/web.py +1578 -397
  84. data/vendor/pygments-main/pygments/modeline.py +40 -0
  85. data/vendor/pygments-main/pygments/plugin.py +1 -1
  86. data/vendor/pygments-main/pygments/scanner.py +1 -1
  87. data/vendor/pygments-main/pygments/style.py +1 -1
  88. data/vendor/pygments-main/pygments/styles/__init__.py +1 -1
  89. data/vendor/pygments-main/pygments/styles/autumn.py +1 -1
  90. data/vendor/pygments-main/pygments/styles/borland.py +1 -1
  91. data/vendor/pygments-main/pygments/styles/bw.py +1 -1
  92. data/vendor/pygments-main/pygments/styles/colorful.py +1 -1
  93. data/vendor/pygments-main/pygments/styles/default.py +1 -1
  94. data/vendor/pygments-main/pygments/styles/emacs.py +1 -1
  95. data/vendor/pygments-main/pygments/styles/friendly.py +1 -1
  96. data/vendor/pygments-main/pygments/styles/fruity.py +1 -1
  97. data/vendor/pygments-main/pygments/styles/manni.py +1 -1
  98. data/vendor/pygments-main/pygments/styles/monokai.py +1 -1
  99. data/vendor/pygments-main/pygments/styles/murphy.py +1 -1
  100. data/vendor/pygments-main/pygments/styles/native.py +1 -1
  101. data/vendor/pygments-main/pygments/styles/pastie.py +1 -1
  102. data/vendor/pygments-main/pygments/styles/perldoc.py +1 -1
  103. data/vendor/pygments-main/pygments/styles/rrt.py +1 -1
  104. data/vendor/pygments-main/pygments/styles/tango.py +1 -1
  105. data/vendor/pygments-main/pygments/styles/trac.py +1 -1
  106. data/vendor/pygments-main/pygments/styles/vim.py +1 -1
  107. data/vendor/pygments-main/pygments/styles/vs.py +1 -1
  108. data/vendor/pygments-main/pygments/token.py +1 -1
  109. data/vendor/pygments-main/pygments/unistring.py +36 -26
  110. data/vendor/pygments-main/pygments/util.py +46 -1
  111. data/vendor/pygments-main/scripts/check_sources.py +2 -2
  112. data/vendor/pygments-main/scripts/detect_missing_analyse_text.py +2 -0
  113. data/vendor/pygments-main/scripts/find_codetags.py +1 -1
  114. data/vendor/pygments-main/scripts/find_error.py +5 -6
  115. data/vendor/pygments-main/setup.cfg +1 -0
  116. data/vendor/pygments-main/setup.py +6 -4
  117. data/vendor/pygments-main/tests/examplefiles/BOM.js +1 -0
  118. data/vendor/pygments-main/tests/examplefiles/Config.in.cache +1973 -0
  119. data/vendor/pygments-main/tests/examplefiles/Deflate.fs +578 -0
  120. data/vendor/pygments-main/tests/examplefiles/Get-CommandDefinitionHtml.ps1 +66 -0
  121. data/vendor/pygments-main/tests/examplefiles/IPDispatchC.nc +104 -0
  122. data/vendor/pygments-main/tests/examplefiles/IPDispatchP.nc +671 -0
  123. data/vendor/pygments-main/tests/examplefiles/RoleQ.pm6 +23 -0
  124. data/vendor/pygments-main/tests/examplefiles/autoit_submit.au3 +25 -0
  125. data/vendor/pygments-main/tests/examplefiles/bigtest.nsi +308 -0
  126. data/vendor/pygments-main/tests/examplefiles/ca65_example +284 -0
  127. data/vendor/pygments-main/tests/examplefiles/cbmbas_example +9 -0
  128. data/vendor/pygments-main/tests/examplefiles/classes.dylan +89 -4
  129. data/vendor/pygments-main/tests/examplefiles/example.Rd +78 -0
  130. data/vendor/pygments-main/tests/examplefiles/example.bug +54 -0
  131. data/vendor/pygments-main/tests/examplefiles/example.ceylon +52 -0
  132. data/vendor/pygments-main/tests/examplefiles/example.clay +33 -0
  133. data/vendor/pygments-main/tests/examplefiles/example.cob +3556 -0
  134. data/vendor/pygments-main/tests/examplefiles/example.hx +142 -0
  135. data/vendor/pygments-main/tests/examplefiles/example.jag +48 -0
  136. data/vendor/pygments-main/tests/examplefiles/example.lagda +19 -0
  137. data/vendor/pygments-main/tests/examplefiles/example.monkey +152 -0
  138. data/vendor/pygments-main/tests/examplefiles/example.msc +43 -0
  139. data/vendor/pygments-main/tests/examplefiles/example.prg +161 -0
  140. data/vendor/pygments-main/tests/examplefiles/example.reg +19 -0
  141. data/vendor/pygments-main/tests/examplefiles/example.rexx +50 -0
  142. data/vendor/pygments-main/tests/examplefiles/example.rkt +95 -0
  143. data/vendor/pygments-main/tests/examplefiles/example.rpf +4 -0
  144. data/vendor/pygments-main/tests/examplefiles/example.shell-session +45 -0
  145. data/vendor/pygments-main/tests/examplefiles/example.stan +108 -0
  146. data/vendor/pygments-main/tests/examplefiles/example.ts +28 -0
  147. data/vendor/pygments-main/tests/examplefiles/example.xtend +34 -0
  148. data/vendor/pygments-main/tests/examplefiles/example2.msc +79 -0
  149. data/vendor/pygments-main/tests/examplefiles/garcia-wachs.kk +133 -0
  150. data/vendor/pygments-main/tests/examplefiles/grammar-test.p6 +22 -0
  151. data/vendor/pygments-main/tests/examplefiles/hello.smali +40 -0
  152. data/vendor/pygments-main/tests/examplefiles/hello.sp +9 -0
  153. data/vendor/pygments-main/tests/examplefiles/http_request_example +2 -1
  154. data/vendor/pygments-main/tests/examplefiles/http_response_example +4 -2
  155. data/vendor/pygments-main/tests/examplefiles/inet_pton6.dg +71 -0
  156. data/vendor/pygments-main/tests/examplefiles/json.lasso +301 -0
  157. data/vendor/pygments-main/tests/examplefiles/json.lasso9 +213 -0
  158. data/vendor/pygments-main/tests/examplefiles/livescript-demo.ls +41 -0
  159. data/vendor/pygments-main/tests/examplefiles/logos_example.xm +28 -0
  160. data/vendor/pygments-main/tests/examplefiles/matlab_sample +5 -2
  161. data/vendor/pygments-main/tests/examplefiles/metagrammar.treetop +455 -0
  162. data/vendor/pygments-main/tests/examplefiles/mg_sample.pro +73 -0
  163. data/vendor/pygments-main/tests/examplefiles/minehunt.qml +112 -0
  164. data/vendor/pygments-main/tests/examplefiles/nanomsg.intr +95 -0
  165. data/vendor/pygments-main/tests/examplefiles/objc_example.m +7 -0
  166. data/vendor/pygments-main/tests/examplefiles/phpMyAdmin.spec +163 -0
  167. data/vendor/pygments-main/tests/examplefiles/py3tb_test.py3tb +4 -0
  168. data/vendor/pygments-main/tests/examplefiles/pytb_test3.pytb +4 -0
  169. data/vendor/pygments-main/tests/examplefiles/robotframework.txt +39 -0
  170. data/vendor/pygments-main/tests/examplefiles/rust_example.rs +233 -0
  171. data/vendor/pygments-main/tests/examplefiles/session.dylan-console +9 -0
  172. data/vendor/pygments-main/tests/examplefiles/swig_java.swg +1329 -0
  173. data/vendor/pygments-main/tests/examplefiles/swig_std_vector.i +225 -0
  174. data/vendor/pygments-main/tests/examplefiles/test.R +149 -115
  175. data/vendor/pygments-main/tests/examplefiles/test.agda +102 -0
  176. data/vendor/pygments-main/tests/examplefiles/test.bb +95 -0
  177. data/vendor/pygments-main/tests/examplefiles/test.cu +36 -0
  178. data/vendor/pygments-main/tests/examplefiles/test.ebnf +31 -0
  179. data/vendor/pygments-main/tests/examplefiles/test.opa +10 -0
  180. data/vendor/pygments-main/tests/examplefiles/test.p6 +252 -0
  181. data/vendor/pygments-main/tests/examplefiles/test2.pypylog +120 -0
  182. data/vendor/pygments-main/tests/examplefiles/type.lisp +16 -0
  183. data/vendor/pygments-main/tests/examplefiles/unix-io.lid +37 -0
  184. data/vendor/pygments-main/tests/old_run.py +1 -1
  185. data/vendor/pygments-main/tests/run.py +3 -2
  186. data/vendor/pygments-main/tests/support/tags +36 -0
  187. data/vendor/pygments-main/tests/test_basic_api.py +4 -3
  188. data/vendor/pygments-main/tests/test_clexer.py +1 -1
  189. data/vendor/pygments-main/tests/test_cmdline.py +1 -1
  190. data/vendor/pygments-main/tests/test_examplefiles.py +3 -1
  191. data/vendor/pygments-main/tests/test_html_formatter.py +17 -1
  192. data/vendor/pygments-main/tests/test_latex_formatter.py +1 -1
  193. data/vendor/pygments-main/tests/test_lexers_other.py +68 -0
  194. data/vendor/pygments-main/tests/test_perllexer.py +1 -1
  195. data/vendor/pygments-main/tests/test_regexlexer.py +1 -1
  196. data/vendor/pygments-main/tests/test_token.py +1 -1
  197. data/vendor/pygments-main/tests/test_using_api.py +1 -1
  198. data/vendor/pygments-main/tests/test_util.py +22 -3
  199. metadata +84 -16
@@ -0,0 +1,120 @@
1
+ [2f1dd6c3b8b7] {jit-log-opt-loop
2
+ # Loop 0 (<Function object at 0xb720e550> ds1dr4 dsdr3 ds1dr4) : loop with 115 ops
3
+ [p0, p1]
4
+ +33: label(p0, p1, descr=TargetToken(-1223434224))
5
+ debug_merge_point(0, 0, '<Function object at 0xb710b120> ds1dr4 dsdr3 ds1dr4')
6
+ +33: guard_nonnull_class(p1, 138371488, descr=<Guard2>) [p1, p0]
7
+ +54: p3 = getfield_gc_pure(p1, descr=<FieldP pyhaskell.interpreter.haskell.Substitution.inst_rhs 8>)
8
+ +57: guard_value(p3, ConstPtr(ptr4), descr=<Guard3>) [p1, p0, p3]
9
+ +69: p5 = getfield_gc_pure(p1, descr=<FieldP pyhaskell.interpreter.haskell.Substitution.inst_subst 12>)
10
+ +72: p7 = getarrayitem_gc(p5, 0, descr=<ArrayP 4>)
11
+ +75: guard_class(p7, 138371552, descr=<Guard4>) [p0, p5, p7]
12
+ +88: p9 = getfield_gc(p7, descr=<FieldP pyhaskell.interpreter.haskell.Thunk.inst_application 8>)
13
+ +91: guard_nonnull_class(p9, 138373024, descr=<Guard5>) [p0, p5, p7, p9]
14
+ +109: p12 = getarrayitem_gc(p5, 1, descr=<ArrayP 4>)
15
+ +112: guard_class(p12, 138371552, descr=<Guard6>) [p0, p5, p12, p7]
16
+ +125: p14 = getfield_gc(p12, descr=<FieldP pyhaskell.interpreter.haskell.Thunk.inst_application 8>)
17
+ +128: guard_nonnull_class(p14, 138373024, descr=<Guard7>) [p0, p5, p12, p14, p7]
18
+ debug_merge_point(0, 0, 'None')
19
+ debug_merge_point(0, 0, 'None')
20
+ +146: p16 = getfield_gc_pure(p9, descr=<FieldP pyhaskell.interpreter.haskell.Application.inst_function 8>)
21
+ +149: guard_value(p16, ConstPtr(ptr17), descr=<Guard8>) [p16, p9, p0, p12, p7]
22
+ +161: p18 = getfield_gc_pure(p9, descr=<FieldP pyhaskell.interpreter.haskell.Application3.inst_arg0 12>)
23
+ +164: guard_class(p18, 138371648, descr=<Guard9>) [p18, p9, p0, p12, p7]
24
+ +177: p20 = getfield_gc_pure(p9, descr=<FieldP pyhaskell.interpreter.haskell.Application3.inst_arg1 16>)
25
+ +180: guard_class(p20, 138371648, descr=<Guard10>) [p20, p9, p18, p0, p12, p7]
26
+ +193: p22 = getfield_gc_pure(p9, descr=<FieldP pyhaskell.interpreter.haskell.Application3.inst_arg2 20>)
27
+ +196: guard_class(p22, 138371936, descr=<Guard11>) [p22, p9, p20, p18, p0, p12, p7]
28
+ debug_merge_point(0, 0, 'None')
29
+ +209: p24 = getfield_gc_pure(p22, descr=<FieldP pyhaskell.interpreter.haskell.Application.inst_function 8>)
30
+ +215: guard_value(p24, ConstPtr(ptr25), descr=<Guard12>) [p24, p22, p9, None, None, p0, p12, p7]
31
+ +227: p27 = getfield_gc_pure(p22, descr=<FieldP pyhaskell.interpreter.haskell.Application1.inst_arg0 12>)
32
+ +230: guard_class(p27, 138371648, descr=<Guard13>) [p22, p27, p9, None, None, p0, p12, p7]
33
+ debug_merge_point(0, 0, '_')
34
+ debug_merge_point(0, 0, 'None')
35
+ +243: p30 = getfield_gc(ConstPtr(ptr29), descr=<FieldP pyhaskell.interpreter.module.CoreMod.inst_qvars 24>)
36
+ +249: i34 = call(ConstClass(ll_dict_lookup_trampoline__v64___simple_call__function_ll), p30, ConstPtr(ptr32), 360200661, descr=<Calli 4 rri EF=4>)
37
+ +281: guard_no_exception(, descr=<Guard14>) [p27, p20, p18, i34, p30, None, None, None, p0, p12, p7]
38
+ +294: i36 = int_and(i34, -2147483648)
39
+ +302: i37 = int_is_true(i36)
40
+ guard_false(i37, descr=<Guard15>) [p27, p20, p18, i34, p30, None, None, None, p0, p12, p7]
41
+ +311: p38 = getfield_gc(p30, descr=<FieldP dicttable.entries 12>)
42
+ +314: p39 = getinteriorfield_gc(p38, i34, descr=<InteriorFieldDescr <FieldP dictentry.value 4>>)
43
+ +318: i40 = instance_ptr_eq(p18, p39)
44
+ guard_true(i40, descr=<Guard16>) [p27, p20, None, None, None, p0, p12, p7]
45
+ debug_merge_point(0, 0, 'None')
46
+ +327: i41 = getfield_gc_pure(p20, descr=<FieldS pyhaskell.interpreter.primtype.Int.inst_value 8>)
47
+ +330: i42 = getfield_gc_pure(p27, descr=<FieldS pyhaskell.interpreter.primtype.Int.inst_value 8>)
48
+ +333: i43 = int_sub(i41, i42)
49
+ debug_merge_point(0, 0, 'None')
50
+ debug_merge_point(0, 0, 'None')
51
+ debug_merge_point(0, 0, 'None')
52
+ +335: i45 = int_eq(0, i43)
53
+ guard_false(i45, descr=<Guard17>) [p0, i43, None, None, None, None, p12, p7]
54
+ p47 = new_with_vtable(138371648)
55
+ +393: setfield_gc(p47, i43, descr=<FieldS pyhaskell.interpreter.primtype.Int.inst_value 8>)
56
+ setfield_gc(p7, p47, descr=<FieldP pyhaskell.interpreter.haskell.Thunk.inst_application 8>)
57
+ +414: p48 = getfield_gc(p12, descr=<FieldP pyhaskell.interpreter.haskell.Thunk.inst_application 8>)
58
+ +420: guard_nonnull_class(p48, 138371648, descr=<Guard18>) [p0, p48, p12, p47, p7]
59
+ debug_merge_point(0, 0, '<PrimFunction object at 0x83f3f6c> 1 <Function object at 0xb710b3b0> 1 <Function object at 0xb710b3c0> <PrimFunction object at 0x83f3f3c> 1 dsdr3 <Function object at 0xb710b210> 1')
60
+ debug_merge_point(0, 0, 'None')
61
+ debug_merge_point(0, 0, '_')
62
+ debug_merge_point(0, 0, 'None')
63
+ debug_merge_point(0, 0, 'None')
64
+ debug_merge_point(0, 0, '<Function object at 0xb710b3d0> dsdr3 dsdr3')
65
+ debug_merge_point(0, 0, '<Function object at 0xb710b120> ds1dr4 dsdr3 ds1dr4')
66
+ +438: label(p0, p48, p30, p38, descr=TargetToken(-1223434176))
67
+ debug_merge_point(0, 0, '<Function object at 0xb710b120> ds1dr4 dsdr3 ds1dr4')
68
+ debug_merge_point(0, 0, 'None')
69
+ debug_merge_point(0, 0, 'None')
70
+ debug_merge_point(0, 0, 'None')
71
+ debug_merge_point(0, 0, '_')
72
+ debug_merge_point(0, 0, 'None')
73
+ +438: i50 = call(ConstClass(ll_dict_lookup_trampoline__v64___simple_call__function_ll), p30, ConstPtr(ptr32), 360200661, descr=<Calli 4 rri EF=4>)
74
+ +464: guard_no_exception(, descr=<Guard19>) [p48, i50, p30, p0]
75
+ +477: i51 = int_and(i50, -2147483648)
76
+ +485: i52 = int_is_true(i51)
77
+ guard_false(i52, descr=<Guard20>) [p48, i50, p30, p0]
78
+ +494: p53 = getinteriorfield_gc(p38, i50, descr=<InteriorFieldDescr <FieldP dictentry.value 4>>)
79
+ +501: i55 = instance_ptr_eq(ConstPtr(ptr54), p53)
80
+ guard_true(i55, descr=<Guard21>) [p48, p0]
81
+ debug_merge_point(0, 0, 'None')
82
+ +513: i56 = getfield_gc_pure(p48, descr=<FieldS pyhaskell.interpreter.primtype.Int.inst_value 8>)
83
+ +516: i58 = int_sub(i56, 1)
84
+ debug_merge_point(0, 0, 'None')
85
+ debug_merge_point(0, 0, 'None')
86
+ debug_merge_point(0, 0, 'None')
87
+ +519: i59 = int_eq(0, i58)
88
+ guard_false(i59, descr=<Guard22>) [i58, p48, p0]
89
+ debug_merge_point(0, 0, '<PrimFunction object at 0x83f3f6c> 1 <Function object at 0xb710b3b0> 1 <Function object at 0xb710b3c0> <PrimFunction object at 0x83f3f3c> 1 dsdr3 <Function object at 0xb710b210> 1')
90
+ debug_merge_point(0, 0, 'None')
91
+ debug_merge_point(0, 0, '_')
92
+ debug_merge_point(0, 0, 'None')
93
+ debug_merge_point(0, 0, 'None')
94
+ debug_merge_point(0, 0, '<Function object at 0xb710b3d0> dsdr3 dsdr3')
95
+ debug_merge_point(0, 0, '<Function object at 0xb710b120> ds1dr4 dsdr3 ds1dr4')
96
+ p61 = new_with_vtable(138371700)
97
+ p63 = new_with_vtable(138373024)
98
+ p65 = new_with_vtable(138371936)
99
+ +606: setfield_gc(p63, ConstPtr(ptr66), descr=<FieldP pyhaskell.interpreter.haskell.Application.inst_function 8>)
100
+ p68 = new_with_vtable(138373024)
101
+ +632: setfield_gc(p65, ConstPtr(ptr69), descr=<FieldP pyhaskell.interpreter.haskell.Application.inst_function 8>)
102
+ p71 = new_with_vtable(138371936)
103
+ +658: setfield_gc(p68, ConstPtr(ptr17), descr=<FieldP pyhaskell.interpreter.haskell.Application.inst_function 8>)
104
+ +665: setfield_gc(p71, ConstPtr(ptr72), descr=<FieldP pyhaskell.interpreter.haskell.Application1.inst_arg0 12>)
105
+ +672: setfield_gc(p68, p71, descr=<FieldP pyhaskell.interpreter.haskell.Application3.inst_arg2 20>)
106
+ +675: setfield_gc(p68, p48, descr=<FieldP pyhaskell.interpreter.haskell.Application3.inst_arg1 16>)
107
+ +678: setfield_gc(p68, ConstPtr(ptr54), descr=<FieldP pyhaskell.interpreter.haskell.Application3.inst_arg0 12>)
108
+ p73 = new_with_vtable(138371648)
109
+ +701: setfield_gc(p61, p0, descr=<FieldP pyhaskell.interpreter.haskell.StackElement.inst_next 8>)
110
+ +716: setfield_gc(p61, 2, descr=<FieldS pyhaskell.interpreter.haskell.CopyStackElement.inst_index 16>)
111
+ +723: setfield_gc(p71, ConstPtr(ptr25), descr=<FieldP pyhaskell.interpreter.haskell.Application.inst_function 8>)
112
+ +730: setfield_gc(p65, p68, descr=<FieldP pyhaskell.interpreter.haskell.Application1.inst_arg0 12>)
113
+ +733: setfield_gc(p63, p65, descr=<FieldP pyhaskell.interpreter.haskell.Application3.inst_arg2 20>)
114
+ +736: setfield_gc(p63, ConstPtr(ptr75), descr=<FieldP pyhaskell.interpreter.haskell.Application3.inst_arg1 16>)
115
+ +743: setfield_gc(p63, ConstPtr(ptr54), descr=<FieldP pyhaskell.interpreter.haskell.Application3.inst_arg0 12>)
116
+ +750: setfield_gc(p61, p63, descr=<FieldP pyhaskell.interpreter.haskell.CopyStackElement.inst_application 12>)
117
+ +753: setfield_gc(p73, i58, descr=<FieldS pyhaskell.interpreter.primtype.Int.inst_value 8>)
118
+ +762: jump(p61, p73, p30, p38, descr=TargetToken(-1223434176))
119
+ +775: --end of the loop--
120
+ [2f1dd6da3b99] jit-log-opt-loop}
@@ -1200,3 +1200,19 @@ Henry Baker:
1200
1200
 
1201
1201
  (unless (clos::funcallable-instance-p #'clos::class-name)
1202
1202
  (fmakunbound 'clos::class-name))
1203
+
1204
+
1205
+ (keywordp :junk)
1206
+ T
1207
+
1208
+ (keywordp ::junk)
1209
+ T
1210
+
1211
+ (symbol-name ::junk)
1212
+ "JUNK"
1213
+
1214
+ (symbol-name :#junk)
1215
+ "#JUNK"
1216
+
1217
+ (symbol-name :#.junk)
1218
+ "#.JUNK"
@@ -0,0 +1,37 @@
1
+ Library: io
2
+ Synopsis: A portable IO library
3
+ Author: Gail Zacharias
4
+ Files: library
5
+ streams/defs
6
+ streams/stream
7
+ streams/sequence-stream
8
+ streams/native-buffer
9
+ streams/buffer
10
+ streams/typed-stream
11
+ streams/external-stream
12
+ streams/buffered-stream
13
+ streams/convenience
14
+ streams/wrapper-stream
15
+ streams/cleanup-streams
16
+ streams/native-speed
17
+ streams/async-writes
18
+ streams/file-stream
19
+ streams/multi-buffered-streams
20
+ pprint
21
+ print
22
+ print-double-integer-kludge
23
+ format
24
+ buffered-format
25
+ format-condition
26
+ unix-file-accessor
27
+ unix-standard-io
28
+ unix-interface
29
+ format-out
30
+ C-Source-Files: unix-portability.c
31
+ Major-Version: 2
32
+ Minor-Version: 1
33
+ Target-Type: dll
34
+ Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
35
+ All rights reserved.
36
+ License: See License.txt in this distribution for details.
37
+ Warranty: Distributed WITHOUT WARRANTY OF ANY KIND
@@ -8,7 +8,7 @@
8
8
  python run.py [testfile ...]
9
9
 
10
10
 
11
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
11
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
12
12
  :license: BSD, see LICENSE for details.
13
13
  """
14
14
 
@@ -8,7 +8,7 @@
8
8
  python run.py [testfile ...]
9
9
 
10
10
 
11
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
11
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
12
12
  :license: BSD, see LICENSE for details.
13
13
  """
14
14
 
@@ -25,7 +25,8 @@ if sys.version_info >= (3,):
25
25
  os.chdir(newroot)
26
26
  else:
27
27
  # only find tests in this directory
28
- os.chdir(os.path.dirname(__file__))
28
+ if os.path.dirname(__file__):
29
+ os.chdir(os.path.dirname(__file__))
29
30
 
30
31
 
31
32
  try:
@@ -0,0 +1,36 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
+ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
+ !_TAG_PROGRAM_NAME Exuberant Ctags //
5
+ !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
+ !_TAG_PROGRAM_VERSION 5.8 //
7
+ HtmlFormatter test_html_formatter.py 19;" i
8
+ HtmlFormatterTest test_html_formatter.py 34;" c
9
+ NullFormatter test_html_formatter.py 19;" i
10
+ PythonLexer test_html_formatter.py 18;" i
11
+ StringIO test_html_formatter.py 13;" i
12
+ dirname test_html_formatter.py 16;" i
13
+ escape_html test_html_formatter.py 20;" i
14
+ fp test_html_formatter.py 27;" v
15
+ inspect test_html_formatter.py 15;" i
16
+ isfile test_html_formatter.py 16;" i
17
+ join test_html_formatter.py 16;" i
18
+ os test_html_formatter.py 10;" i
19
+ re test_html_formatter.py 11;" i
20
+ subprocess test_html_formatter.py 125;" i
21
+ support test_html_formatter.py 23;" i
22
+ tempfile test_html_formatter.py 14;" i
23
+ test_all_options test_html_formatter.py 72;" m class:HtmlFormatterTest
24
+ test_correct_output test_html_formatter.py 35;" m class:HtmlFormatterTest
25
+ test_ctags test_html_formatter.py 165;" m class:HtmlFormatterTest
26
+ test_external_css test_html_formatter.py 48;" m class:HtmlFormatterTest
27
+ test_get_style_defs test_html_formatter.py 141;" m class:HtmlFormatterTest
28
+ test_lineanchors test_html_formatter.py 98;" m class:HtmlFormatterTest
29
+ test_lineanchors_with_startnum test_html_formatter.py 106;" m class:HtmlFormatterTest
30
+ test_linenos test_html_formatter.py 82;" m class:HtmlFormatterTest
31
+ test_linenos_with_startnum test_html_formatter.py 90;" m class:HtmlFormatterTest
32
+ test_unicode_options test_html_formatter.py 155;" m class:HtmlFormatterTest
33
+ test_valid_output test_html_formatter.py 114;" m class:HtmlFormatterTest
34
+ tokensource test_html_formatter.py 29;" v
35
+ uni_open test_html_formatter.py 21;" i
36
+ unittest test_html_formatter.py 12;" i
@@ -3,7 +3,7 @@
3
3
  Pygments basic API tests
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -92,8 +92,9 @@ def test_lexer_options():
92
92
  if cls.__name__ not in (
93
93
  'PythonConsoleLexer', 'RConsoleLexer', 'RubyConsoleLexer',
94
94
  'SqliteConsoleLexer', 'MatlabSessionLexer', 'ErlangShellLexer',
95
- 'BashSessionLexer', 'LiterateHaskellLexer', 'PostgresConsoleLexer',
96
- 'ElixirConsoleLexer', 'JuliaConsoleLexer'):
95
+ 'BashSessionLexer', 'LiterateHaskellLexer', 'LiterateAgdaLexer',
96
+ 'PostgresConsoleLexer', 'ElixirConsoleLexer', 'JuliaConsoleLexer',
97
+ 'RobotFrameworkLexer', 'DylanConsoleLexer', 'ShellSessionLexer'):
97
98
  inst = cls(ensurenl=False)
98
99
  ensure(inst.get_tokens('a\nb'), 'a\nb')
99
100
  inst = cls(ensurenl=False, stripall=True)
@@ -3,7 +3,7 @@
3
3
  Basic CLexer Test
4
4
  ~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -3,7 +3,7 @@
3
3
  Command line test
4
4
  ~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -3,7 +3,7 @@
3
3
  Pygments tests with example files
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -58,6 +58,8 @@ def check_lexer(lx, absfn, outfn):
58
58
  text = text.strip(b('\n')) + b('\n')
59
59
  try:
60
60
  text = text.decode('utf-8')
61
+ if text.startswith(u'\ufeff'):
62
+ text = text[len(u'\ufeff'):]
61
63
  except UnicodeError:
62
64
  text = text.decode('latin1')
63
65
  ntext = []
@@ -3,7 +3,7 @@
3
3
  Pygments HTML formatter tests
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -160,3 +160,19 @@ class HtmlFormatterTest(unittest.TestCase):
160
160
  tfile = os.fdopen(handle, 'w+b')
161
161
  fmt.format(tokensource, tfile)
162
162
  tfile.close()
163
+
164
+ def test_ctags(self):
165
+ try:
166
+ import ctags
167
+ except ImportError:
168
+ # we can't check without the ctags module, but at least check the exception
169
+ self.assertRaises(RuntimeError, HtmlFormatter, tagsfile='support/tags')
170
+ else:
171
+ # this tagfile says that test_ctags() is on line 165, even if it isn't
172
+ # anymore in the actual source
173
+ fmt = HtmlFormatter(tagsfile='support/tags', lineanchors='L',
174
+ tagurlformat='%(fname)s%(fext)s')
175
+ outfile = StringIO.StringIO()
176
+ fmt.format(tokensource, outfile)
177
+ self.assertTrue('<a href="test_html_formatter.py#L-165">test_ctags</a>'
178
+ in outfile.getvalue())
@@ -3,7 +3,7 @@
3
3
  Pygments LaTeX formatter tests
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -0,0 +1,68 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Tests for other lexers
4
+ ~~~~~~~~~~~~~~~~~~~~~~
5
+
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
+ :license: BSD, see LICENSE for details.
8
+ """
9
+
10
+ import glob
11
+ import os
12
+ import unittest
13
+
14
+ from pygments.lexers import guess_lexer
15
+ from pygments.lexers.other import RexxLexer
16
+
17
+
18
+ def _exampleFilePath(filename):
19
+ return os.path.join(os.path.dirname(__file__), 'examplefiles', filename)
20
+
21
+
22
+ class AnalyseTextTest(unittest.TestCase):
23
+ def _testCanRecognizeAndGuessExampleFiles(self, lexer):
24
+ assert lexer is not None
25
+
26
+ for pattern in lexer.filenames:
27
+ exampleFilesPattern = _exampleFilePath(pattern)
28
+ for exampleFilePath in glob.glob(exampleFilesPattern):
29
+ exampleFile = open(exampleFilePath, 'rb')
30
+ try:
31
+ text = exampleFile.read()
32
+ probability = lexer.analyse_text(text)
33
+ self.assertTrue(probability > 0,
34
+ '%s must recognize %r' % (
35
+ lexer.name, exampleFilePath))
36
+ guessedLexer = guess_lexer(text)
37
+ self.assertEqual(guessedLexer.name, lexer.name)
38
+ finally:
39
+ exampleFile.close()
40
+
41
+ def testCanRecognizeAndGuessExampleFiles(self):
42
+ self._testCanRecognizeAndGuessExampleFiles(RexxLexer)
43
+
44
+
45
+ class RexxLexerTest(unittest.TestCase):
46
+ def testCanGuessFromText(self):
47
+ self.assertAlmostEqual(0.01,
48
+ RexxLexer.analyse_text('/* */'))
49
+ self.assertAlmostEqual(1.0,
50
+ RexxLexer.analyse_text('''/* Rexx */
51
+ say "hello world"'''))
52
+ self.assertLess(0.5,
53
+ RexxLexer.analyse_text('/* */\n'
54
+ 'hello:pRoceduRe\n'
55
+ ' say "hello world"'))
56
+ self.assertLess(0.2,
57
+ RexxLexer.analyse_text('''/* */
58
+ if 1 > 0 then do
59
+ say "ok"
60
+ end
61
+ else do
62
+ say "huh?"
63
+ end'''))
64
+ self.assertLess(0.2,
65
+ RexxLexer.analyse_text('''/* */
66
+ greeting = "hello world!"
67
+ parse value greeting "hello" name "!"
68
+ say name'''))
@@ -3,7 +3,7 @@
3
3
  Pygments regex lexer tests
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -3,7 +3,7 @@
3
3
  Pygments regex lexer tests
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 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 token module
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9
 
@@ -3,7 +3,7 @@
3
3
  Pygments tests for using()
4
4
  ~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5
 
6
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
6
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
7
7
  :license: BSD, see LICENSE for details.
8
8
  """
9
9