pygments.rb 2.4.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (349) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +8 -8
  3. data/.github/workflows/release.yml +5 -5
  4. data/.gitignore +2 -0
  5. data/.rubocop.yml +1 -1
  6. data/CHANGELOG.adoc +12 -0
  7. data/README.adoc +2 -2
  8. data/lib/pygments/popen.rb +2 -2
  9. data/lib/pygments/version.rb +1 -1
  10. data/pygments.rb.gemspec +3 -3
  11. data/vendor/pygments-main/bin/pygmentize +1 -1
  12. data/vendor/pygments-main/pygments/__init__.py +2 -2
  13. data/vendor/pygments-main/pygments/__main__.py +1 -1
  14. data/vendor/pygments-main/pygments/cmdline.py +12 -12
  15. data/vendor/pygments-main/pygments/console.py +5 -5
  16. data/vendor/pygments-main/pygments/filter.py +2 -3
  17. data/vendor/pygments-main/pygments/filters/__init__.py +4 -4
  18. data/vendor/pygments-main/pygments/formatter.py +6 -1
  19. data/vendor/pygments-main/pygments/formatters/__init__.py +7 -8
  20. data/vendor/pygments-main/pygments/formatters/_mapping.py +0 -0
  21. data/vendor/pygments-main/pygments/formatters/bbcode.py +2 -2
  22. data/vendor/pygments-main/pygments/formatters/groff.py +3 -3
  23. data/vendor/pygments-main/pygments/formatters/html.py +38 -40
  24. data/vendor/pygments-main/pygments/formatters/img.py +51 -11
  25. data/vendor/pygments-main/pygments/formatters/irc.py +1 -1
  26. data/vendor/pygments-main/pygments/formatters/latex.py +24 -27
  27. data/vendor/pygments-main/pygments/formatters/other.py +3 -4
  28. data/vendor/pygments-main/pygments/formatters/pangomarkup.py +2 -2
  29. data/vendor/pygments-main/pygments/formatters/rtf.py +228 -25
  30. data/vendor/pygments-main/pygments/formatters/svg.py +17 -20
  31. data/vendor/pygments-main/pygments/formatters/terminal.py +1 -1
  32. data/vendor/pygments-main/pygments/formatters/terminal256.py +1 -1
  33. data/vendor/pygments-main/pygments/lexer.py +51 -33
  34. data/vendor/pygments-main/pygments/lexers/__init__.py +12 -12
  35. data/vendor/pygments-main/pygments/lexers/_ada_builtins.py +1 -1
  36. data/vendor/pygments-main/pygments/lexers/_asy_builtins.py +1 -1
  37. data/vendor/pygments-main/pygments/lexers/_cl_builtins.py +1 -1
  38. data/vendor/pygments-main/pygments/lexers/_cocoa_builtins.py +2 -2
  39. data/vendor/pygments-main/pygments/lexers/_csound_builtins.py +1 -1
  40. data/vendor/pygments-main/pygments/lexers/_css_builtins.py +1 -1
  41. data/vendor/pygments-main/pygments/lexers/_julia_builtins.py +1 -1
  42. data/vendor/pygments-main/pygments/lexers/_lasso_builtins.py +1 -1
  43. data/vendor/pygments-main/pygments/lexers/_lilypond_builtins.py +1 -1
  44. data/vendor/pygments-main/pygments/lexers/_lua_builtins.py +5 -5
  45. data/vendor/pygments-main/pygments/lexers/_luau_builtins.py +62 -0
  46. data/vendor/pygments-main/pygments/lexers/_mapping.py +41 -11
  47. data/vendor/pygments-main/pygments/lexers/_mql_builtins.py +1 -1
  48. data/vendor/pygments-main/pygments/lexers/_mysql_builtins.py +3 -3
  49. data/vendor/pygments-main/pygments/lexers/_openedge_builtins.py +1 -1
  50. data/vendor/pygments-main/pygments/lexers/_php_builtins.py +3 -3
  51. data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +5 -5
  52. data/vendor/pygments-main/pygments/lexers/_qlik_builtins.py +1 -1
  53. data/vendor/pygments-main/pygments/lexers/_scheme_builtins.py +1 -1
  54. data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +4 -4
  55. data/vendor/pygments-main/pygments/lexers/_sourcemod_builtins.py +3 -3
  56. data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +1 -1
  57. data/vendor/pygments-main/pygments/lexers/_stata_builtins.py +1 -1
  58. data/vendor/pygments-main/pygments/lexers/_tsql_builtins.py +1 -1
  59. data/vendor/pygments-main/pygments/lexers/_usd_builtins.py +1 -1
  60. data/vendor/pygments-main/pygments/lexers/_vbscript_builtins.py +1 -1
  61. data/vendor/pygments-main/pygments/lexers/_vim_builtins.py +1 -1
  62. data/vendor/pygments-main/pygments/lexers/actionscript.py +6 -8
  63. data/vendor/pygments-main/pygments/lexers/ada.py +3 -3
  64. data/vendor/pygments-main/pygments/lexers/agile.py +3 -1
  65. data/vendor/pygments-main/pygments/lexers/algebra.py +9 -13
  66. data/vendor/pygments-main/pygments/lexers/ambient.py +2 -3
  67. data/vendor/pygments-main/pygments/lexers/amdgpu.py +3 -3
  68. data/vendor/pygments-main/pygments/lexers/ampl.py +2 -3
  69. data/vendor/pygments-main/pygments/lexers/apdlexer.py +4 -3
  70. data/vendor/pygments-main/pygments/lexers/apl.py +2 -3
  71. data/vendor/pygments-main/pygments/lexers/archetype.py +8 -12
  72. data/vendor/pygments-main/pygments/lexers/arrow.py +2 -3
  73. data/vendor/pygments-main/pygments/lexers/arturo.py +2 -3
  74. data/vendor/pygments-main/pygments/lexers/asc.py +4 -4
  75. data/vendor/pygments-main/pygments/lexers/asm.py +28 -15
  76. data/vendor/pygments-main/pygments/lexers/asn1.py +178 -0
  77. data/vendor/pygments-main/pygments/lexers/automation.py +6 -8
  78. data/vendor/pygments-main/pygments/lexers/bare.py +2 -3
  79. data/vendor/pygments-main/pygments/lexers/basic.py +48 -57
  80. data/vendor/pygments-main/pygments/lexers/bdd.py +3 -4
  81. data/vendor/pygments-main/pygments/lexers/berry.py +4 -4
  82. data/vendor/pygments-main/pygments/lexers/bibtex.py +5 -5
  83. data/vendor/pygments-main/pygments/lexers/blueprint.py +173 -0
  84. data/vendor/pygments-main/pygments/lexers/boa.py +4 -4
  85. data/vendor/pygments-main/pygments/lexers/bqn.py +109 -0
  86. data/vendor/pygments-main/pygments/lexers/business.py +21 -22
  87. data/vendor/pygments-main/pygments/lexers/c_cpp.py +9 -4
  88. data/vendor/pygments-main/pygments/lexers/c_like.py +99 -27
  89. data/vendor/pygments-main/pygments/lexers/capnproto.py +2 -3
  90. data/vendor/pygments-main/pygments/lexers/carbon.py +10 -11
  91. data/vendor/pygments-main/pygments/lexers/cddl.py +8 -9
  92. data/vendor/pygments-main/pygments/lexers/chapel.py +2 -3
  93. data/vendor/pygments-main/pygments/lexers/clean.py +2 -1
  94. data/vendor/pygments-main/pygments/lexers/comal.py +2 -1
  95. data/vendor/pygments-main/pygments/lexers/compiled.py +2 -1
  96. data/vendor/pygments-main/pygments/lexers/configs.py +342 -108
  97. data/vendor/pygments-main/pygments/lexers/console.py +5 -5
  98. data/vendor/pygments-main/pygments/lexers/cplint.py +2 -3
  99. data/vendor/pygments-main/pygments/lexers/crystal.py +4 -5
  100. data/vendor/pygments-main/pygments/lexers/csound.py +6 -8
  101. data/vendor/pygments-main/pygments/lexers/css.py +5 -5
  102. data/vendor/pygments-main/pygments/lexers/d.py +4 -3
  103. data/vendor/pygments-main/pygments/lexers/dalvik.py +2 -3
  104. data/vendor/pygments-main/pygments/lexers/data.py +8 -12
  105. data/vendor/pygments-main/pygments/lexers/dax.py +2 -3
  106. data/vendor/pygments-main/pygments/lexers/devicetree.py +2 -3
  107. data/vendor/pygments-main/pygments/lexers/diff.py +7 -6
  108. data/vendor/pygments-main/pygments/lexers/dns.py +109 -0
  109. data/vendor/pygments-main/pygments/lexers/dotnet.py +19 -14
  110. data/vendor/pygments-main/pygments/lexers/dsls.py +24 -35
  111. data/vendor/pygments-main/pygments/lexers/dylan.py +8 -16
  112. data/vendor/pygments-main/pygments/lexers/ecl.py +2 -3
  113. data/vendor/pygments-main/pygments/lexers/eiffel.py +3 -4
  114. data/vendor/pygments-main/pygments/lexers/elm.py +3 -4
  115. data/vendor/pygments-main/pygments/lexers/elpi.py +28 -21
  116. data/vendor/pygments-main/pygments/lexers/email.py +3 -3
  117. data/vendor/pygments-main/pygments/lexers/erlang.py +22 -24
  118. data/vendor/pygments-main/pygments/lexers/esoteric.py +11 -12
  119. data/vendor/pygments-main/pygments/lexers/ezhil.py +2 -3
  120. data/vendor/pygments-main/pygments/lexers/factor.py +2 -3
  121. data/vendor/pygments-main/pygments/lexers/fantom.py +3 -3
  122. data/vendor/pygments-main/pygments/lexers/felix.py +9 -10
  123. data/vendor/pygments-main/pygments/lexers/fift.py +2 -1
  124. data/vendor/pygments-main/pygments/lexers/floscript.py +2 -3
  125. data/vendor/pygments-main/pygments/lexers/forth.py +2 -3
  126. data/vendor/pygments-main/pygments/lexers/fortran.py +6 -7
  127. data/vendor/pygments-main/pygments/lexers/foxpro.py +3 -3
  128. data/vendor/pygments-main/pygments/lexers/freefem.py +2 -3
  129. data/vendor/pygments-main/pygments/lexers/func.py +3 -1
  130. data/vendor/pygments-main/pygments/lexers/functional.py +2 -1
  131. data/vendor/pygments-main/pygments/lexers/futhark.py +6 -7
  132. data/vendor/pygments-main/pygments/lexers/gcodelexer.py +3 -3
  133. data/vendor/pygments-main/pygments/lexers/gdscript.py +2 -1
  134. data/vendor/pygments-main/pygments/lexers/go.py +3 -4
  135. data/vendor/pygments-main/pygments/lexers/grammar_notation.py +6 -9
  136. data/vendor/pygments-main/pygments/lexers/graph.py +12 -9
  137. data/vendor/pygments-main/pygments/lexers/graphics.py +13 -17
  138. data/vendor/pygments-main/pygments/lexers/graphql.py +176 -0
  139. data/vendor/pygments-main/pygments/lexers/graphviz.py +2 -3
  140. data/vendor/pygments-main/pygments/lexers/gsql.py +2 -3
  141. data/vendor/pygments-main/pygments/lexers/haskell.py +27 -32
  142. data/vendor/pygments-main/pygments/lexers/haxe.py +3 -5
  143. data/vendor/pygments-main/pygments/lexers/hdl.py +8 -7
  144. data/vendor/pygments-main/pygments/lexers/hexdump.py +3 -3
  145. data/vendor/pygments-main/pygments/lexers/html.py +34 -13
  146. data/vendor/pygments-main/pygments/lexers/idl.py +2 -3
  147. data/vendor/pygments-main/pygments/lexers/igor.py +305 -290
  148. data/vendor/pygments-main/pygments/lexers/inferno.py +2 -3
  149. data/vendor/pygments-main/pygments/lexers/installers.py +7 -9
  150. data/vendor/pygments-main/pygments/lexers/int_fiction.py +150 -162
  151. data/vendor/pygments-main/pygments/lexers/iolang.py +2 -3
  152. data/vendor/pygments-main/pygments/lexers/j.py +2 -3
  153. data/vendor/pygments-main/pygments/lexers/javascript.py +18 -19
  154. data/vendor/pygments-main/pygments/lexers/jmespath.py +2 -1
  155. data/vendor/pygments-main/pygments/lexers/jslt.py +2 -3
  156. data/vendor/pygments-main/pygments/lexers/jsonnet.py +4 -3
  157. data/vendor/pygments-main/pygments/lexers/jsx.py +75 -0
  158. data/vendor/pygments-main/pygments/lexers/julia.py +4 -5
  159. data/vendor/pygments-main/pygments/lexers/jvm.py +98 -116
  160. data/vendor/pygments-main/pygments/lexers/kuin.py +2 -3
  161. data/vendor/pygments-main/pygments/lexers/kusto.py +93 -0
  162. data/vendor/pygments-main/pygments/lexers/ldap.py +155 -0
  163. data/vendor/pygments-main/pygments/lexers/lean.py +241 -0
  164. data/vendor/pygments-main/pygments/lexers/lilypond.py +2 -3
  165. data/vendor/pygments-main/pygments/lexers/lisp.py +373 -65
  166. data/vendor/pygments-main/pygments/lexers/macaulay2.py +53 -4
  167. data/vendor/pygments-main/pygments/lexers/make.py +7 -5
  168. data/vendor/pygments-main/pygments/lexers/markup.py +242 -91
  169. data/vendor/pygments-main/pygments/lexers/math.py +2 -1
  170. data/vendor/pygments-main/pygments/lexers/matlab.py +10 -12
  171. data/vendor/pygments-main/pygments/lexers/maxima.py +2 -3
  172. data/vendor/pygments-main/pygments/lexers/meson.py +2 -3
  173. data/vendor/pygments-main/pygments/lexers/mime.py +4 -4
  174. data/vendor/pygments-main/pygments/lexers/minecraft.py +24 -27
  175. data/vendor/pygments-main/pygments/lexers/mips.py +3 -1
  176. data/vendor/pygments-main/pygments/lexers/ml.py +59 -61
  177. data/vendor/pygments-main/pygments/lexers/modeling.py +19 -22
  178. data/vendor/pygments-main/pygments/lexers/modula2.py +2 -3
  179. data/vendor/pygments-main/pygments/lexers/mojo.py +704 -0
  180. data/vendor/pygments-main/pygments/lexers/monte.py +2 -3
  181. data/vendor/pygments-main/pygments/lexers/mosel.py +3 -3
  182. data/vendor/pygments-main/pygments/lexers/ncl.py +4 -3
  183. data/vendor/pygments-main/pygments/lexers/nimrod.py +7 -8
  184. data/vendor/pygments-main/pygments/lexers/nit.py +2 -3
  185. data/vendor/pygments-main/pygments/lexers/nix.py +40 -31
  186. data/vendor/pygments-main/pygments/lexers/oberon.py +3 -3
  187. data/vendor/pygments-main/pygments/lexers/objective.py +14 -6
  188. data/vendor/pygments-main/pygments/lexers/ooc.py +2 -3
  189. data/vendor/pygments-main/pygments/lexers/openscad.py +96 -0
  190. data/vendor/pygments-main/pygments/lexers/other.py +2 -1
  191. data/vendor/pygments-main/pygments/lexers/parasail.py +2 -3
  192. data/vendor/pygments-main/pygments/lexers/parsers.py +41 -44
  193. data/vendor/pygments-main/pygments/lexers/pascal.py +6 -3
  194. data/vendor/pygments-main/pygments/lexers/pawn.py +5 -5
  195. data/vendor/pygments-main/pygments/lexers/perl.py +3 -3
  196. data/vendor/pygments-main/pygments/lexers/phix.py +2 -3
  197. data/vendor/pygments-main/pygments/lexers/php.py +4 -5
  198. data/vendor/pygments-main/pygments/lexers/pointless.py +2 -3
  199. data/vendor/pygments-main/pygments/lexers/pony.py +3 -3
  200. data/vendor/pygments-main/pygments/lexers/praat.py +2 -3
  201. data/vendor/pygments-main/pygments/lexers/procfile.py +2 -3
  202. data/vendor/pygments-main/pygments/lexers/prolog.py +23 -9
  203. data/vendor/pygments-main/pygments/lexers/promql.py +2 -1
  204. data/vendor/pygments-main/pygments/lexers/prql.py +251 -0
  205. data/vendor/pygments-main/pygments/lexers/ptx.py +119 -0
  206. data/vendor/pygments-main/pygments/lexers/python.py +24 -24
  207. data/vendor/pygments-main/pygments/lexers/q.py +5 -6
  208. data/vendor/pygments-main/pygments/lexers/qlik.py +3 -3
  209. data/vendor/pygments-main/pygments/lexers/qvt.py +5 -3
  210. data/vendor/pygments-main/pygments/lexers/r.py +8 -6
  211. data/vendor/pygments-main/pygments/lexers/rdf.py +19 -13
  212. data/vendor/pygments-main/pygments/lexers/rebol.py +7 -7
  213. data/vendor/pygments-main/pygments/lexers/resource.py +5 -6
  214. data/vendor/pygments-main/pygments/lexers/ride.py +4 -5
  215. data/vendor/pygments-main/pygments/lexers/rita.py +2 -3
  216. data/vendor/pygments-main/pygments/lexers/rnc.py +2 -3
  217. data/vendor/pygments-main/pygments/lexers/roboconf.py +5 -5
  218. data/vendor/pygments-main/pygments/lexers/robotframework.py +2 -3
  219. data/vendor/pygments-main/pygments/lexers/ruby.py +8 -13
  220. data/vendor/pygments-main/pygments/lexers/rust.py +9 -10
  221. data/vendor/pygments-main/pygments/lexers/sas.py +3 -3
  222. data/vendor/pygments-main/pygments/lexers/savi.py +131 -130
  223. data/vendor/pygments-main/pygments/lexers/scdoc.py +13 -7
  224. data/vendor/pygments-main/pygments/lexers/scripting.py +354 -42
  225. data/vendor/pygments-main/pygments/lexers/sgf.py +2 -3
  226. data/vendor/pygments-main/pygments/lexers/shell.py +107 -129
  227. data/vendor/pygments-main/pygments/lexers/sieve.py +3 -3
  228. data/vendor/pygments-main/pygments/lexers/slash.py +4 -5
  229. data/vendor/pygments-main/pygments/lexers/smalltalk.py +3 -5
  230. data/vendor/pygments-main/pygments/lexers/smithy.py +2 -3
  231. data/vendor/pygments-main/pygments/lexers/smv.py +3 -3
  232. data/vendor/pygments-main/pygments/lexers/snobol.py +3 -3
  233. data/vendor/pygments-main/pygments/lexers/solidity.py +3 -3
  234. data/vendor/pygments-main/pygments/lexers/soong.py +78 -0
  235. data/vendor/pygments-main/pygments/lexers/sophia.py +3 -4
  236. data/vendor/pygments-main/pygments/lexers/special.py +8 -3
  237. data/vendor/pygments-main/pygments/lexers/spice.py +15 -16
  238. data/vendor/pygments-main/pygments/lexers/sql.py +24 -18
  239. data/vendor/pygments-main/pygments/lexers/srcinfo.py +3 -3
  240. data/vendor/pygments-main/pygments/lexers/stata.py +2 -3
  241. data/vendor/pygments-main/pygments/lexers/supercollider.py +2 -3
  242. data/vendor/pygments-main/pygments/lexers/tact.py +303 -0
  243. data/vendor/pygments-main/pygments/lexers/tal.py +13 -10
  244. data/vendor/pygments-main/pygments/lexers/tcl.py +2 -3
  245. data/vendor/pygments-main/pygments/lexers/teal.py +2 -3
  246. data/vendor/pygments-main/pygments/lexers/templates.py +131 -72
  247. data/vendor/pygments-main/pygments/lexers/teraterm.py +2 -3
  248. data/vendor/pygments-main/pygments/lexers/testing.py +4 -5
  249. data/vendor/pygments-main/pygments/lexers/text.py +2 -1
  250. data/vendor/pygments-main/pygments/lexers/textedit.py +9 -6
  251. data/vendor/pygments-main/pygments/lexers/textfmts.py +20 -15
  252. data/vendor/pygments-main/pygments/lexers/theorem.py +41 -115
  253. data/vendor/pygments-main/pygments/lexers/thingsdb.py +50 -26
  254. data/vendor/pygments-main/pygments/lexers/tlb.py +3 -1
  255. data/vendor/pygments-main/pygments/lexers/tls.py +54 -0
  256. data/vendor/pygments-main/pygments/lexers/tnt.py +2 -3
  257. data/vendor/pygments-main/pygments/lexers/trafficscript.py +3 -3
  258. data/vendor/pygments-main/pygments/lexers/typoscript.py +6 -7
  259. data/vendor/pygments-main/pygments/lexers/typst.py +104 -0
  260. data/vendor/pygments-main/pygments/lexers/ul4.py +47 -5
  261. data/vendor/pygments-main/pygments/lexers/unicon.py +9 -7
  262. data/vendor/pygments-main/pygments/lexers/urbi.py +3 -3
  263. data/vendor/pygments-main/pygments/lexers/usd.py +6 -11
  264. data/vendor/pygments-main/pygments/lexers/varnish.py +5 -5
  265. data/vendor/pygments-main/pygments/lexers/verification.py +4 -5
  266. data/vendor/pygments-main/pygments/lexers/verifpal.py +65 -0
  267. data/vendor/pygments-main/pygments/lexers/vip.py +150 -0
  268. data/vendor/pygments-main/pygments/lexers/vyper.py +140 -0
  269. data/vendor/pygments-main/pygments/lexers/web.py +2 -1
  270. data/vendor/pygments-main/pygments/lexers/webassembly.py +2 -3
  271. data/vendor/pygments-main/pygments/lexers/webidl.py +2 -3
  272. data/vendor/pygments-main/pygments/lexers/webmisc.py +11 -15
  273. data/vendor/pygments-main/pygments/lexers/wgsl.py +6 -7
  274. data/vendor/pygments-main/pygments/lexers/whiley.py +2 -3
  275. data/vendor/pygments-main/pygments/lexers/wowtoc.py +3 -3
  276. data/vendor/pygments-main/pygments/lexers/wren.py +3 -4
  277. data/vendor/pygments-main/pygments/lexers/x10.py +6 -7
  278. data/vendor/pygments-main/pygments/lexers/xorg.py +2 -1
  279. data/vendor/pygments-main/pygments/lexers/yang.py +2 -3
  280. data/vendor/pygments-main/pygments/lexers/yara.py +69 -0
  281. data/vendor/pygments-main/pygments/lexers/zig.py +2 -1
  282. data/vendor/pygments-main/pygments/modeline.py +4 -4
  283. data/vendor/pygments-main/pygments/plugin.py +3 -19
  284. data/vendor/pygments-main/pygments/regexopt.py +1 -1
  285. data/vendor/pygments-main/pygments/scanner.py +1 -1
  286. data/vendor/pygments-main/pygments/sphinxext.py +38 -8
  287. data/vendor/pygments-main/pygments/style.py +8 -2
  288. data/vendor/pygments-main/pygments/styles/__init__.py +17 -59
  289. data/vendor/pygments-main/pygments/styles/_mapping.py +54 -0
  290. data/vendor/pygments-main/pygments/styles/abap.py +5 -1
  291. data/vendor/pygments-main/pygments/styles/algol.py +5 -1
  292. data/vendor/pygments-main/pygments/styles/algol_nu.py +5 -1
  293. data/vendor/pygments-main/pygments/styles/arduino.py +76 -72
  294. data/vendor/pygments-main/pygments/styles/autumn.py +6 -1
  295. data/vendor/pygments-main/pygments/styles/borland.py +6 -1
  296. data/vendor/pygments-main/pygments/styles/bw.py +6 -1
  297. data/vendor/pygments-main/pygments/styles/coffee.py +80 -0
  298. data/vendor/pygments-main/pygments/styles/colorful.py +6 -1
  299. data/vendor/pygments-main/pygments/styles/default.py +6 -1
  300. data/vendor/pygments-main/pygments/styles/dracula.py +68 -80
  301. data/vendor/pygments-main/pygments/styles/emacs.py +6 -1
  302. data/vendor/pygments-main/pygments/styles/friendly.py +6 -1
  303. data/vendor/pygments-main/pygments/styles/friendly_grayscale.py +6 -1
  304. data/vendor/pygments-main/pygments/styles/fruity.py +7 -1
  305. data/vendor/pygments-main/pygments/styles/gh_dark.py +7 -1
  306. data/vendor/pygments-main/pygments/styles/gruvbox.py +10 -1
  307. data/vendor/pygments-main/pygments/styles/igor.py +6 -1
  308. data/vendor/pygments-main/pygments/styles/inkpot.py +7 -2
  309. data/vendor/pygments-main/pygments/styles/lightbulb.py +110 -0
  310. data/vendor/pygments-main/pygments/styles/lilypond.py +8 -2
  311. data/vendor/pygments-main/pygments/styles/lovelace.py +16 -10
  312. data/vendor/pygments-main/pygments/styles/manni.py +7 -2
  313. data/vendor/pygments-main/pygments/styles/material.py +21 -14
  314. data/vendor/pygments-main/pygments/styles/monokai.py +16 -10
  315. data/vendor/pygments-main/pygments/styles/murphy.py +7 -2
  316. data/vendor/pygments-main/pygments/styles/native.py +10 -5
  317. data/vendor/pygments-main/pygments/styles/nord.py +9 -3
  318. data/vendor/pygments-main/pygments/styles/onedark.py +6 -2
  319. data/vendor/pygments-main/pygments/styles/paraiso_dark.py +7 -2
  320. data/vendor/pygments-main/pygments/styles/paraiso_light.py +7 -2
  321. data/vendor/pygments-main/pygments/styles/pastie.py +7 -1
  322. data/vendor/pygments-main/pygments/styles/perldoc.py +7 -1
  323. data/vendor/pygments-main/pygments/styles/rainbow_dash.py +26 -19
  324. data/vendor/pygments-main/pygments/styles/rrt.py +8 -2
  325. data/vendor/pygments-main/pygments/styles/sas.py +6 -1
  326. data/vendor/pygments-main/pygments/styles/solarized.py +9 -1
  327. data/vendor/pygments-main/pygments/styles/staroffice.py +6 -1
  328. data/vendor/pygments-main/pygments/styles/stata_dark.py +6 -2
  329. data/vendor/pygments-main/pygments/styles/stata_light.py +6 -1
  330. data/vendor/pygments-main/pygments/styles/tango.py +7 -3
  331. data/vendor/pygments-main/pygments/styles/trac.py +7 -1
  332. data/vendor/pygments-main/pygments/styles/vim.py +7 -1
  333. data/vendor/pygments-main/pygments/styles/vs.py +7 -2
  334. data/vendor/pygments-main/pygments/styles/xcode.py +6 -1
  335. data/vendor/pygments-main/pygments/styles/zenburn.py +6 -1
  336. data/vendor/pygments-main/pygments/token.py +2 -1
  337. data/vendor/pygments-main/pygments/unistring.py +5 -5
  338. data/vendor/pygments-main/pygments/util.py +13 -19
  339. data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/METADATA +14 -13
  340. data/vendor/pygments-main/pygments-2.18.0.dist-info/RECORD +663 -0
  341. data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/WHEEL +1 -2
  342. data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info/licenses}/AUTHORS +13 -0
  343. metadata +41 -17
  344. data/vendor/pygments-main/Pygments-2.15.1.dist-info/RECORD +0 -614
  345. data/vendor/pygments-main/Pygments-2.15.1.dist-info/top_level.txt +0 -1
  346. /data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/INSTALLER +0 -0
  347. /data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/REQUESTED +0 -0
  348. /data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/entry_points.txt +0 -0
  349. /data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info/licenses}/LICENSE +0 -0
@@ -4,7 +4,7 @@
4
4
 
5
5
  Lexer for the YANG 1.1 modeling language. See :rfc:`7950`.
6
6
 
7
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
7
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
8
8
  :license: BSD, see LICENSE for details.
9
9
  """
10
10
 
@@ -17,14 +17,13 @@ __all__ = ['YangLexer']
17
17
  class YangLexer(RegexLexer):
18
18
  """
19
19
  Lexer for YANG, based on RFC7950.
20
-
21
- .. versionadded:: 2.7
22
20
  """
23
21
  name = 'YANG'
24
22
  url = 'https://tools.ietf.org/html/rfc7950/'
25
23
  aliases = ['yang']
26
24
  filenames = ['*.yang']
27
25
  mimetypes = ['application/yang']
26
+ version_added = '2.7'
28
27
 
29
28
  #Keywords from RFC7950 ; oriented at BNF style
30
29
  TOP_STMTS_KEYWORDS = ("module", "submodule")
@@ -0,0 +1,69 @@
1
+ """
2
+ pygments.lexers.yara
3
+ ~~~~~~~~~~~~~~~~~~~~
4
+
5
+ Lexers for YARA.
6
+
7
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
8
+ :license: BSD, see LICENSE for details.
9
+ """
10
+
11
+ from pygments.lexer import RegexLexer, words
12
+ from pygments.token import Comment, String, Name, Text, Punctuation, \
13
+ Operator, Keyword, Whitespace, Number
14
+
15
+ __all__ = ['YaraLexer']
16
+
17
+
18
+ class YaraLexer(RegexLexer):
19
+ """
20
+ For YARA rules
21
+ """
22
+
23
+ name = 'YARA'
24
+ url = 'https://virustotal.github.io/yara/'
25
+ aliases = ['yara', 'yar']
26
+ filenames = ['*.yar']
27
+ mimetypes = ['text/x-yara']
28
+ version_added = '2.16'
29
+
30
+ tokens = {
31
+ 'root': [
32
+ (r'\s+', Whitespace),
33
+ (r'//.*?$', Comment.Single),
34
+ (r'\#.*?$', Comment.Single),
35
+ (r'/\*', Comment.Multiline, 'comment'),
36
+ (words(('rule', 'private', 'global', 'import', 'include'),
37
+ prefix=r'\b', suffix=r'\b'),
38
+ Keyword.Declaration),
39
+ (words(('strings', 'condition', 'meta'), prefix=r'\b', suffix=r'\b'),
40
+ Keyword),
41
+ (words(('ascii', 'at', 'base64', 'base64wide', 'condition',
42
+ 'contains', 'endswith', 'entrypoint', 'filesize', 'for',
43
+ 'fullword', 'icontains', 'iendswith', 'iequals', 'in',
44
+ 'include', 'int16', 'int16be', 'int32', 'int32be', 'int8',
45
+ 'int8be', 'istartswith', 'matches', 'meta', 'nocase',
46
+ 'none', 'of', 'startswith', 'strings', 'them', 'uint16',
47
+ 'uint16be', 'uint32', 'uint32be', 'uint8', 'uint8be',
48
+ 'wide', 'xor', 'defined'),
49
+ prefix=r'\b', suffix=r'\b'),
50
+ Name.Builtin),
51
+ (r'(true|false)\b', Keyword.Constant),
52
+ (r'(and|or|not|any|all)\b', Operator.Word),
53
+ (r'(\$\w+)', Name.Variable),
54
+ (r'"[^"]*"', String.Double),
55
+ (r'\'[^\']*\'', String.Single),
56
+ (r'\{.*?\}$', Number.Hex),
57
+ (r'(/.*?/)', String.Regex),
58
+ (r'[a-z_]\w*', Name),
59
+ (r'[$(){}[\].?+*|]', Punctuation),
60
+ (r'[:=,;]', Punctuation),
61
+ (r'.', Text)
62
+ ],
63
+ 'comment': [
64
+ (r'[^*/]+', Comment.Multiline),
65
+ (r'/\*', Comment.Multiline, '#push'),
66
+ (r'\*/', Comment.Multiline, '#pop'),
67
+ (r'[*/]', Comment.Multiline)
68
+ ]
69
+ }
@@ -4,7 +4,7 @@
4
4
 
5
5
  Lexers for Zig.
6
6
 
7
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
7
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
8
8
  :license: BSD, see LICENSE for details.
9
9
  """
10
10
 
@@ -26,6 +26,7 @@ class ZigLexer(RegexLexer):
26
26
  aliases = ['zig']
27
27
  filenames = ['*.zig']
28
28
  mimetypes = ['text/zig']
29
+ version_added = ''
29
30
 
30
31
  type_keywords = (
31
32
  words(('bool', 'f16', 'f32', 'f64', 'f128', 'void', 'noreturn', 'type',
@@ -4,7 +4,7 @@
4
4
 
5
5
  A simple modeline parser (based on pymodeline).
6
6
 
7
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
7
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
8
8
  :license: BSD, see LICENSE for details.
9
9
  """
10
10
 
@@ -19,7 +19,7 @@ modeline_re = re.compile(r'''
19
19
  ''', re.VERBOSE)
20
20
 
21
21
 
22
- def get_filetype_from_line(l):
22
+ def get_filetype_from_line(l): # noqa: E741
23
23
  m = modeline_re.search(l)
24
24
  if m:
25
25
  return m.group(1)
@@ -30,8 +30,8 @@ def get_filetype_from_buffer(buf, max_lines=5):
30
30
  Scan the buffer for modelines and return filetype if one is found.
31
31
  """
32
32
  lines = buf.splitlines()
33
- for l in lines[-1:-max_lines-1:-1]:
34
- ret = get_filetype_from_line(l)
33
+ for line in lines[-1:-max_lines-1:-1]:
34
+ ret = get_filetype_from_line(line)
35
35
  if ret:
36
36
  return ret
37
37
  for i in range(max_lines, -1, -1):
@@ -2,12 +2,7 @@
2
2
  pygments.plugin
3
3
  ~~~~~~~~~~~~~~~
4
4
 
5
- Pygments plugin interface. By default, this tries to use
6
- ``importlib.metadata``, which is in the Python standard
7
- library since Python 3.8, or its ``importlib_metadata``
8
- backport for earlier versions of Python. It falls back on
9
- ``pkg_resources`` if not found. Finally, if ``pkg_resources``
10
- is not found either, no plugins are loaded at all.
5
+ Pygments plugin interface.
11
6
 
12
7
  lexer plugins::
13
8
 
@@ -34,9 +29,10 @@
34
29
  yourfilter = yourfilter:YourFilter
35
30
 
36
31
 
37
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
32
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
38
33
  :license: BSD, see LICENSE for details.
39
34
  """
35
+ from importlib.metadata import entry_points
40
36
 
41
37
  LEXER_ENTRY_POINT = 'pygments.lexers'
42
38
  FORMATTER_ENTRY_POINT = 'pygments.formatters'
@@ -45,18 +41,6 @@ FILTER_ENTRY_POINT = 'pygments.filters'
45
41
 
46
42
 
47
43
  def iter_entry_points(group_name):
48
- try:
49
- from importlib.metadata import entry_points
50
- except ImportError:
51
- try:
52
- from importlib_metadata import entry_points
53
- except ImportError:
54
- try:
55
- from pkg_resources import iter_entry_points
56
- except (ImportError, OSError):
57
- return []
58
- else:
59
- return iter_entry_points(group_name)
60
44
  groups = entry_points()
61
45
  if hasattr(groups, 'select'):
62
46
  # New interface in Python 3.10 and newer versions of the
@@ -5,7 +5,7 @@
5
5
  An algorithm that generates optimized regexes for matching long lists of
6
6
  literal strings.
7
7
 
8
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
8
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
9
9
  :license: BSD, see LICENSE for details.
10
10
  """
11
11
 
@@ -11,7 +11,7 @@
11
11
  Have a look at the `DelphiLexer` to get an idea of how to use
12
12
  this scanner.
13
13
 
14
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
14
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
15
15
  :license: BSD, see LICENSE for details.
16
16
  """
17
17
  import re
@@ -5,7 +5,7 @@
5
5
  Sphinx extension to generate automatic documentation of lexers,
6
6
  formatters and filters.
7
7
 
8
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
8
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
9
9
  :license: BSD, see LICENSE for details.
10
10
  """
11
11
 
@@ -33,6 +33,8 @@ LEXERDOC = '''
33
33
 
34
34
  %s
35
35
 
36
+ %s
37
+
36
38
  '''
37
39
 
38
40
  FMTERDOC = '''
@@ -119,11 +121,11 @@ class PygmentsDoc(Directive):
119
121
  def write_row(*columns):
120
122
  """Format a table row"""
121
123
  out = []
122
- for l, c in zip(column_lengths, columns):
123
- if c:
124
- out.append(c.ljust(l))
124
+ for length, col in zip(column_lengths, columns):
125
+ if col:
126
+ out.append(col.ljust(length))
125
127
  else:
126
- out.append(' '*l)
128
+ out.append(' '*length)
127
129
 
128
130
  return ' '.join(out)
129
131
 
@@ -147,6 +149,10 @@ class PygmentsDoc(Directive):
147
149
 
148
150
  def document_lexers(self):
149
151
  from pygments.lexers._mapping import LEXERS
152
+ import pygments
153
+ import inspect
154
+ import pathlib
155
+
150
156
  out = []
151
157
  modules = {}
152
158
  moduledocstrings = {}
@@ -156,16 +162,40 @@ class PygmentsDoc(Directive):
156
162
  self.filenames.add(mod.__file__)
157
163
  cls = getattr(mod, classname)
158
164
  if not cls.__doc__:
159
- print("Warning: %s does not have a docstring." % classname)
165
+ print(f"Warning: {classname} does not have a docstring.")
160
166
  docstring = cls.__doc__
161
167
  if isinstance(docstring, bytes):
162
168
  docstring = docstring.decode('utf8')
169
+
170
+ example_file = getattr(cls, '_example', None)
171
+ if example_file:
172
+ p = pathlib.Path(inspect.getabsfile(pygments)).parent.parent /\
173
+ 'tests' / 'examplefiles' / example_file
174
+ content = p.read_text(encoding='utf-8')
175
+ if not content:
176
+ raise Exception(
177
+ f"Empty example file '{example_file}' for lexer "
178
+ f"{classname}")
179
+
180
+ if data[2]:
181
+ lexer_name = data[2][0]
182
+ docstring += '\n\n .. admonition:: Example\n'
183
+ docstring += f'\n .. code-block:: {lexer_name}\n\n'
184
+ for line in content.splitlines():
185
+ docstring += f' {line}\n'
186
+
187
+ if cls.version_added:
188
+ version_line = f'.. versionadded:: {cls.version_added}'
189
+ else:
190
+ version_line = ''
191
+
163
192
  modules.setdefault(module, []).append((
164
193
  classname,
165
194
  ', '.join(data[2]) or 'None',
166
195
  ', '.join(data[3]).replace('*', '\\*').replace('_', '\\') or 'None',
167
196
  ', '.join(data[4]) or 'None',
168
- docstring))
197
+ docstring,
198
+ version_line))
169
199
  if module not in moduledocstrings:
170
200
  moddoc = mod.__doc__
171
201
  if isinstance(moddoc, bytes):
@@ -174,7 +204,7 @@ class PygmentsDoc(Directive):
174
204
 
175
205
  for module, lexers in sorted(modules.items(), key=lambda x: x[0]):
176
206
  if moduledocstrings[module] is None:
177
- raise Exception("Missing docstring for %s" % (module,))
207
+ raise Exception(f"Missing docstring for {module}")
178
208
  heading = moduledocstrings[module].splitlines()[4].strip().rstrip('.')
179
209
  out.append(MODULEDOC % (module, heading, '-'*len(heading)))
180
210
  for data in lexers:
@@ -4,7 +4,7 @@
4
4
 
5
5
  Basic style object.
6
6
 
7
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
7
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
8
8
  :license: BSD, see LICENSE for details.
9
9
  """
10
10
 
@@ -76,7 +76,7 @@ class StyleMeta(type):
76
76
  return ''
77
77
  elif text.startswith('var') or text.startswith('calc'):
78
78
  return text
79
- assert False, "wrong color format %r" % text
79
+ assert False, f"wrong color format {text!r}"
80
80
 
81
81
  _styles = obj._styles = {}
82
82
 
@@ -190,6 +190,12 @@ class Style(metaclass=StyleMeta):
190
190
  #: Style definitions for individual token types.
191
191
  styles = {}
192
192
 
193
+ #: user-friendly style name (used when selecting the style, so this
194
+ # should be all-lowercase, no spaces, hyphens)
195
+ name = 'unnamed'
196
+
197
+ aliases = []
198
+
193
199
  # Attribute for lexers defined within Pygments. If set
194
200
  # to True, the style is not shown in the style gallery
195
201
  # on the website. This is intended for language-specific
@@ -4,65 +4,21 @@
4
4
 
5
5
  Contains built-in styles.
6
6
 
7
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
7
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
8
8
  :license: BSD, see LICENSE for details.
9
9
  """
10
10
 
11
11
  from pygments.plugin import find_plugin_styles
12
12
  from pygments.util import ClassNotFound
13
+ from pygments.styles._mapping import STYLES
13
14
 
14
15
  #: A dictionary of built-in styles, mapping style names to
15
16
  #: ``'submodule::classname'`` strings.
16
- STYLE_MAP = {
17
- 'default': 'default::DefaultStyle',
18
- 'emacs': 'emacs::EmacsStyle',
19
- 'friendly': 'friendly::FriendlyStyle',
20
- 'friendly_grayscale': 'friendly_grayscale::FriendlyGrayscaleStyle',
21
- 'colorful': 'colorful::ColorfulStyle',
22
- 'autumn': 'autumn::AutumnStyle',
23
- 'murphy': 'murphy::MurphyStyle',
24
- 'manni': 'manni::ManniStyle',
25
- 'material': 'material::MaterialStyle',
26
- 'monokai': 'monokai::MonokaiStyle',
27
- 'perldoc': 'perldoc::PerldocStyle',
28
- 'pastie': 'pastie::PastieStyle',
29
- 'borland': 'borland::BorlandStyle',
30
- 'trac': 'trac::TracStyle',
31
- 'native': 'native::NativeStyle',
32
- 'fruity': 'fruity::FruityStyle',
33
- 'bw': 'bw::BlackWhiteStyle',
34
- 'vim': 'vim::VimStyle',
35
- 'vs': 'vs::VisualStudioStyle',
36
- 'tango': 'tango::TangoStyle',
37
- 'rrt': 'rrt::RrtStyle',
38
- 'xcode': 'xcode::XcodeStyle',
39
- 'igor': 'igor::IgorStyle',
40
- 'paraiso-light': 'paraiso_light::ParaisoLightStyle',
41
- 'paraiso-dark': 'paraiso_dark::ParaisoDarkStyle',
42
- 'lovelace': 'lovelace::LovelaceStyle',
43
- 'algol': 'algol::AlgolStyle',
44
- 'algol_nu': 'algol_nu::Algol_NuStyle',
45
- 'arduino': 'arduino::ArduinoStyle',
46
- 'rainbow_dash': 'rainbow_dash::RainbowDashStyle',
47
- 'abap': 'abap::AbapStyle',
48
- 'solarized-dark': 'solarized::SolarizedDarkStyle',
49
- 'solarized-light': 'solarized::SolarizedLightStyle',
50
- 'sas': 'sas::SasStyle',
51
- 'staroffice' : 'staroffice::StarofficeStyle',
52
- 'stata': 'stata_light::StataLightStyle',
53
- 'stata-light': 'stata_light::StataLightStyle',
54
- 'stata-dark': 'stata_dark::StataDarkStyle',
55
- 'inkpot': 'inkpot::InkPotStyle',
56
- 'zenburn': 'zenburn::ZenburnStyle',
57
- 'gruvbox-dark': 'gruvbox::GruvboxDarkStyle',
58
- 'gruvbox-light': 'gruvbox::GruvboxLightStyle',
59
- 'dracula': 'dracula::DraculaStyle',
60
- 'one-dark': 'onedark::OneDarkStyle',
61
- 'lilypond' : 'lilypond::LilyPondStyle',
62
- 'nord': 'nord::NordStyle',
63
- 'nord-darker': 'nord::NordDarkerStyle',
64
- 'github-dark': 'gh_dark::GhDarkStyle'
65
- }
17
+ #: This list is deprecated. Use `pygments.styles.STYLES` instead
18
+ STYLE_MAP = {v[1]: v[0].split('.')[-1] + '::' + k for k, v in STYLES.items()}
19
+
20
+ #: Internal reverse mapping to make `get_style_by_name` more efficient
21
+ _STYLE_NAME_TO_MODULE_MAP = {v[1]: (v[0], k) for k, v in STYLES.items()}
66
22
 
67
23
 
68
24
  def get_style_by_name(name):
@@ -73,8 +29,8 @@ def get_style_by_name(name):
73
29
  Will raise :exc:`pygments.util.ClassNotFound` if no style of that name is
74
30
  found.
75
31
  """
76
- if name in STYLE_MAP:
77
- mod, cls = STYLE_MAP[name].split('::')
32
+ if name in _STYLE_NAME_TO_MODULE_MAP:
33
+ mod, cls = _STYLE_NAME_TO_MODULE_MAP[name]
78
34
  builtin = "yes"
79
35
  else:
80
36
  for found_name, style in find_plugin_styles():
@@ -82,22 +38,24 @@ def get_style_by_name(name):
82
38
  return style
83
39
  # perhaps it got dropped into our styles package
84
40
  builtin = ""
85
- mod = name
41
+ mod = 'pygments.styles.' + name
86
42
  cls = name.title() + "Style"
87
43
 
88
44
  try:
89
- mod = __import__('pygments.styles.' + mod, None, None, [cls])
45
+ mod = __import__(mod, None, None, [cls])
90
46
  except ImportError:
91
- raise ClassNotFound("Could not find style module %r" % mod +
92
- (builtin and ", though it should be builtin") + ".")
47
+ raise ClassNotFound(f"Could not find style module {mod!r}" +
48
+ (builtin and ", though it should be builtin")
49
+ + ".")
93
50
  try:
94
51
  return getattr(mod, cls)
95
52
  except AttributeError:
96
- raise ClassNotFound("Could not find style class %r in style module." % cls)
53
+ raise ClassNotFound(f"Could not find style class {cls!r} in style module.")
97
54
 
98
55
 
99
56
  def get_all_styles():
100
57
  """Return a generator for all styles by name, both builtin and plugin."""
101
- yield from STYLE_MAP
58
+ for v in STYLES.values():
59
+ yield v[1]
102
60
  for name, _ in find_plugin_styles():
103
61
  yield name
@@ -0,0 +1,54 @@
1
+ # Automatically generated by scripts/gen_mapfiles.py.
2
+ # DO NOT EDIT BY HAND; run `tox -e mapfiles` instead.
3
+
4
+ STYLES = {
5
+ 'AbapStyle': ('pygments.styles.abap', 'abap', ()),
6
+ 'AlgolStyle': ('pygments.styles.algol', 'algol', ()),
7
+ 'Algol_NuStyle': ('pygments.styles.algol_nu', 'algol_nu', ()),
8
+ 'ArduinoStyle': ('pygments.styles.arduino', 'arduino', ()),
9
+ 'AutumnStyle': ('pygments.styles.autumn', 'autumn', ()),
10
+ 'BlackWhiteStyle': ('pygments.styles.bw', 'bw', ()),
11
+ 'BorlandStyle': ('pygments.styles.borland', 'borland', ()),
12
+ 'CoffeeStyle': ('pygments.styles.coffee', 'coffee', ()),
13
+ 'ColorfulStyle': ('pygments.styles.colorful', 'colorful', ()),
14
+ 'DefaultStyle': ('pygments.styles.default', 'default', ()),
15
+ 'DraculaStyle': ('pygments.styles.dracula', 'dracula', ()),
16
+ 'EmacsStyle': ('pygments.styles.emacs', 'emacs', ()),
17
+ 'FriendlyGrayscaleStyle': ('pygments.styles.friendly_grayscale', 'friendly_grayscale', ()),
18
+ 'FriendlyStyle': ('pygments.styles.friendly', 'friendly', ()),
19
+ 'FruityStyle': ('pygments.styles.fruity', 'fruity', ()),
20
+ 'GhDarkStyle': ('pygments.styles.gh_dark', 'github-dark', ()),
21
+ 'GruvboxDarkStyle': ('pygments.styles.gruvbox', 'gruvbox-dark', ()),
22
+ 'GruvboxLightStyle': ('pygments.styles.gruvbox', 'gruvbox-light', ()),
23
+ 'IgorStyle': ('pygments.styles.igor', 'igor', ()),
24
+ 'InkPotStyle': ('pygments.styles.inkpot', 'inkpot', ()),
25
+ 'LightbulbStyle': ('pygments.styles.lightbulb', 'lightbulb', ()),
26
+ 'LilyPondStyle': ('pygments.styles.lilypond', 'lilypond', ()),
27
+ 'LovelaceStyle': ('pygments.styles.lovelace', 'lovelace', ()),
28
+ 'ManniStyle': ('pygments.styles.manni', 'manni', ()),
29
+ 'MaterialStyle': ('pygments.styles.material', 'material', ()),
30
+ 'MonokaiStyle': ('pygments.styles.monokai', 'monokai', ()),
31
+ 'MurphyStyle': ('pygments.styles.murphy', 'murphy', ()),
32
+ 'NativeStyle': ('pygments.styles.native', 'native', ()),
33
+ 'NordDarkerStyle': ('pygments.styles.nord', 'nord-darker', ()),
34
+ 'NordStyle': ('pygments.styles.nord', 'nord', ()),
35
+ 'OneDarkStyle': ('pygments.styles.onedark', 'one-dark', ()),
36
+ 'ParaisoDarkStyle': ('pygments.styles.paraiso_dark', 'paraiso-dark', ()),
37
+ 'ParaisoLightStyle': ('pygments.styles.paraiso_light', 'paraiso-light', ()),
38
+ 'PastieStyle': ('pygments.styles.pastie', 'pastie', ()),
39
+ 'PerldocStyle': ('pygments.styles.perldoc', 'perldoc', ()),
40
+ 'RainbowDashStyle': ('pygments.styles.rainbow_dash', 'rainbow_dash', ()),
41
+ 'RrtStyle': ('pygments.styles.rrt', 'rrt', ()),
42
+ 'SasStyle': ('pygments.styles.sas', 'sas', ()),
43
+ 'SolarizedDarkStyle': ('pygments.styles.solarized', 'solarized-dark', ()),
44
+ 'SolarizedLightStyle': ('pygments.styles.solarized', 'solarized-light', ()),
45
+ 'StarofficeStyle': ('pygments.styles.staroffice', 'staroffice', ()),
46
+ 'StataDarkStyle': ('pygments.styles.stata_dark', 'stata-dark', ()),
47
+ 'StataLightStyle': ('pygments.styles.stata_light', 'stata-light', ()),
48
+ 'TangoStyle': ('pygments.styles.tango', 'tango', ()),
49
+ 'TracStyle': ('pygments.styles.trac', 'trac', ()),
50
+ 'VimStyle': ('pygments.styles.vim', 'vim', ()),
51
+ 'VisualStudioStyle': ('pygments.styles.vs', 'vs', ()),
52
+ 'XcodeStyle': ('pygments.styles.xcode', 'xcode', ()),
53
+ 'ZenburnStyle': ('pygments.styles.zenburn', 'zenburn', ()),
54
+ }
@@ -4,7 +4,7 @@
4
4
 
5
5
  ABAP workbench like style.
6
6
 
7
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
7
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
8
8
  :license: BSD, see LICENSE for details.
9
9
  """
10
10
 
@@ -13,7 +13,11 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
13
13
  Number, Operator
14
14
 
15
15
 
16
+ __all__ = ['AbapStyle']
17
+
18
+
16
19
  class AbapStyle(Style):
20
+ name = 'abap'
17
21
 
18
22
  styles = {
19
23
  Comment: 'italic #888',
@@ -25,7 +25,7 @@
25
25
 
26
26
  [1] `Revised Report on the Algorithmic Language Algol-60 <http://www.masswerk.at/algol60/report.htm>`
27
27
 
28
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
28
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
29
29
  :license: BSD, see LICENSE for details.
30
30
  """
31
31
 
@@ -33,7 +33,11 @@ from pygments.style import Style
33
33
  from pygments.token import Keyword, Name, Comment, String, Error, Operator
34
34
 
35
35
 
36
+ __all__ = ['AlgolStyle']
37
+
38
+
36
39
  class AlgolStyle(Style):
40
+ name = 'algol'
37
41
 
38
42
  background_color = "#ffffff"
39
43
 
@@ -25,7 +25,7 @@
25
25
 
26
26
  [1] `Revised Report on the Algorithmic Language Algol-60 <http://www.masswerk.at/algol60/report.htm>`
27
27
 
28
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
28
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
29
29
  :license: BSD, see LICENSE for details.
30
30
  """
31
31
 
@@ -33,7 +33,11 @@ from pygments.style import Style
33
33
  from pygments.token import Keyword, Name, Comment, String, Error, Operator
34
34
 
35
35
 
36
+ __all__ = ['Algol_NuStyle']
37
+
38
+
36
39
  class Algol_NuStyle(Style):
40
+ name = 'algol_nu'
37
41
 
38
42
  background_color = "#ffffff"
39
43