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
  Arduino® Syntax highlighting 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,84 +13,88 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
13
13
  Number, Operator, Generic, Whitespace
14
14
 
15
15
 
16
+ __all__ = ['ArduinoStyle']
17
+
18
+
16
19
  class ArduinoStyle(Style):
17
20
  """
18
21
  The Arduino® language style. This style is designed to highlight the
19
22
  Arduino source code, so expect the best results with it.
20
23
  """
24
+ name = 'arduino'
21
25
 
22
26
  background_color = "#ffffff"
23
27
 
24
28
  styles = {
25
- Whitespace: "", # class: 'w'
26
- Error: "#a61717", # class: 'err'
27
-
28
- Comment: "#95a5a6", # class: 'c'
29
- Comment.Multiline: "", # class: 'cm'
30
- Comment.Preproc: "#728E00", # class: 'cp'
31
- Comment.Single: "", # class: 'c1'
32
- Comment.Special: "", # class: 'cs'
33
-
34
- Keyword: "#728E00", # class: 'k'
35
- Keyword.Constant: "#00979D", # class: 'kc'
36
- Keyword.Declaration: "", # class: 'kd'
37
- Keyword.Namespace: "", # class: 'kn'
38
- Keyword.Pseudo: "#00979D", # class: 'kp'
39
- Keyword.Reserved: "#00979D", # class: 'kr'
40
- Keyword.Type: "#00979D", # class: 'kt'
41
-
42
- Operator: "#728E00", # class: 'o'
43
- Operator.Word: "", # class: 'ow'
44
-
45
- Name: "#434f54", # class: 'n'
46
- Name.Attribute: "", # class: 'na'
47
- Name.Builtin: "#728E00", # class: 'nb'
48
- Name.Builtin.Pseudo: "", # class: 'bp'
49
- Name.Class: "", # class: 'nc'
50
- Name.Constant: "", # class: 'no'
51
- Name.Decorator: "", # class: 'nd'
52
- Name.Entity: "", # class: 'ni'
53
- Name.Exception: "", # class: 'ne'
54
- Name.Function: "#D35400", # class: 'nf'
55
- Name.Property: "", # class: 'py'
56
- Name.Label: "", # class: 'nl'
57
- Name.Namespace: "", # class: 'nn'
58
- Name.Other: "#728E00", # class: 'nx'
59
- Name.Tag: "", # class: 'nt'
60
- Name.Variable: "", # class: 'nv'
61
- Name.Variable.Class: "", # class: 'vc'
62
- Name.Variable.Global: "", # class: 'vg'
63
- Name.Variable.Instance: "", # class: 'vi'
64
-
65
- Number: "#8A7B52", # class: 'm'
66
- Number.Float: "", # class: 'mf'
67
- Number.Hex: "", # class: 'mh'
68
- Number.Integer: "", # class: 'mi'
69
- Number.Integer.Long: "", # class: 'il'
70
- Number.Oct: "", # class: 'mo'
71
-
72
- String: "#7F8C8D", # class: 's'
73
- String.Backtick: "", # class: 'sb'
74
- String.Char: "", # class: 'sc'
75
- String.Doc: "", # class: 'sd'
76
- String.Double: "", # class: 's2'
77
- String.Escape: "", # class: 'se'
78
- String.Heredoc: "", # class: 'sh'
79
- String.Interpol: "", # class: 'si'
80
- String.Other: "", # class: 'sx'
81
- String.Regex: "", # class: 'sr'
82
- String.Single: "", # class: 's1'
83
- String.Symbol: "", # class: 'ss'
84
-
85
- Generic: "", # class: 'g'
86
- Generic.Deleted: "", # class: 'gd',
87
- Generic.Emph: "", # class: 'ge'
88
- Generic.Error: "", # class: 'gr'
89
- Generic.Heading: "", # class: 'gh'
90
- Generic.Inserted: "", # class: 'gi'
91
- Generic.Output: "", # class: 'go'
92
- Generic.Prompt: "", # class: 'gp'
93
- Generic.Strong: "", # class: 'gs'
94
- Generic.Subheading: "", # class: 'gu'
95
- Generic.Traceback: "", # class: 'gt'
29
+ Whitespace: "", # class: 'w'
30
+ Error: "#a61717", # class: 'err'
31
+
32
+ Comment: "#95a5a6", # class: 'c'
33
+ Comment.Multiline: "", # class: 'cm'
34
+ Comment.Preproc: "#728E00", # class: 'cp'
35
+ Comment.Single: "", # class: 'c1'
36
+ Comment.Special: "", # class: 'cs'
37
+
38
+ Keyword: "#728E00", # class: 'k'
39
+ Keyword.Constant: "#00979D", # class: 'kc'
40
+ Keyword.Declaration: "", # class: 'kd'
41
+ Keyword.Namespace: "", # class: 'kn'
42
+ Keyword.Pseudo: "#00979D", # class: 'kp'
43
+ Keyword.Reserved: "#00979D", # class: 'kr'
44
+ Keyword.Type: "#00979D", # class: 'kt'
45
+
46
+ Operator: "#728E00", # class: 'o'
47
+ Operator.Word: "", # class: 'ow'
48
+
49
+ Name: "#434f54", # class: 'n'
50
+ Name.Attribute: "", # class: 'na'
51
+ Name.Builtin: "#728E00", # class: 'nb'
52
+ Name.Builtin.Pseudo: "", # class: 'bp'
53
+ Name.Class: "", # class: 'nc'
54
+ Name.Constant: "", # class: 'no'
55
+ Name.Decorator: "", # class: 'nd'
56
+ Name.Entity: "", # class: 'ni'
57
+ Name.Exception: "", # class: 'ne'
58
+ Name.Function: "#D35400", # class: 'nf'
59
+ Name.Property: "", # class: 'py'
60
+ Name.Label: "", # class: 'nl'
61
+ Name.Namespace: "", # class: 'nn'
62
+ Name.Other: "#728E00", # class: 'nx'
63
+ Name.Tag: "", # class: 'nt'
64
+ Name.Variable: "", # class: 'nv'
65
+ Name.Variable.Class: "", # class: 'vc'
66
+ Name.Variable.Global: "", # class: 'vg'
67
+ Name.Variable.Instance: "", # class: 'vi'
68
+
69
+ Number: "#8A7B52", # class: 'm'
70
+ Number.Float: "", # class: 'mf'
71
+ Number.Hex: "", # class: 'mh'
72
+ Number.Integer: "", # class: 'mi'
73
+ Number.Integer.Long: "", # class: 'il'
74
+ Number.Oct: "", # class: 'mo'
75
+
76
+ String: "#7F8C8D", # class: 's'
77
+ String.Backtick: "", # class: 'sb'
78
+ String.Char: "", # class: 'sc'
79
+ String.Doc: "", # class: 'sd'
80
+ String.Double: "", # class: 's2'
81
+ String.Escape: "", # class: 'se'
82
+ String.Heredoc: "", # class: 'sh'
83
+ String.Interpol: "", # class: 'si'
84
+ String.Other: "", # class: 'sx'
85
+ String.Regex: "", # class: 'sr'
86
+ String.Single: "", # class: 's1'
87
+ String.Symbol: "", # class: 'ss'
88
+
89
+ Generic: "", # class: 'g'
90
+ Generic.Deleted: "", # class: 'gd',
91
+ Generic.Emph: "", # class: 'ge'
92
+ Generic.Error: "", # class: 'gr'
93
+ Generic.Heading: "", # class: 'gh'
94
+ Generic.Inserted: "", # class: 'gi'
95
+ Generic.Output: "", # class: 'go'
96
+ Generic.Prompt: "", # class: 'gp'
97
+ Generic.Strong: "", # class: 'gs'
98
+ Generic.Subheading: "", # class: 'gu'
99
+ Generic.Traceback: "", # class: 'gt'
96
100
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  A colorful style, inspired by the terminal highlighting 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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
13
13
  Number, Operator, Generic, Whitespace
14
14
 
15
15
 
16
+ __all__ = ['AutumnStyle']
17
+
18
+
16
19
  class AutumnStyle(Style):
17
20
  """
18
21
  A colorful style, inspired by the terminal highlighting style.
19
22
  """
23
+ name = 'autumn'
20
24
 
21
25
  styles = {
22
26
  Whitespace: '#bbbbbb',
@@ -54,6 +58,7 @@ class AutumnStyle(Style):
54
58
  Generic.Error: '#aa0000',
55
59
  Generic.Emph: 'italic',
56
60
  Generic.Strong: 'bold',
61
+ Generic.EmphStrong: 'bold italic',
57
62
  Generic.Prompt: '#555555',
58
63
  Generic.Output: '#888888',
59
64
  Generic.Traceback: '#aa0000',
@@ -4,7 +4,7 @@
4
4
 
5
5
  Style similar to the style used in the Borland IDEs.
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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
13
13
  Number, Operator, Generic, Whitespace
14
14
 
15
15
 
16
+ __all__ = ['BorlandStyle']
17
+
18
+
16
19
  class BorlandStyle(Style):
17
20
  """
18
21
  Style similar to the style used in the borland IDEs.
19
22
  """
23
+ name = 'borland'
20
24
 
21
25
  styles = {
22
26
  Whitespace: '#bbbbbb',
@@ -40,6 +44,7 @@ class BorlandStyle(Style):
40
44
  Generic.Error: '#aa0000',
41
45
  Generic.Emph: 'italic',
42
46
  Generic.Strong: 'bold',
47
+ Generic.EmphStrong: 'bold italic',
43
48
  Generic.Prompt: '#555555',
44
49
  Generic.Output: '#888888',
45
50
  Generic.Traceback: '#aa0000',
@@ -4,7 +4,7 @@
4
4
 
5
5
  Simple black/white only 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
  Operator, Generic
14
14
 
15
15
 
16
+ __all__ = ['BlackWhiteStyle']
17
+
18
+
16
19
  class BlackWhiteStyle(Style):
20
+ name = 'bw'
17
21
 
18
22
  background_color = "#ffffff"
19
23
 
@@ -41,6 +45,7 @@ class BlackWhiteStyle(Style):
41
45
  Generic.Subheading: "bold",
42
46
  Generic.Emph: "italic",
43
47
  Generic.Strong: "bold",
48
+ Generic.EmphStrong: "bold italic",
44
49
  Generic.Prompt: "bold",
45
50
 
46
51
  Error: "border:#FF0000"
@@ -0,0 +1,80 @@
1
+ """
2
+ pygments.styles.coffee
3
+ ~~~~~~~~~~~~~~~~~~~~~~
4
+
5
+ A warm and cozy theme based off gruvbox
6
+
7
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
8
+ :license: BSD, see LICENSE for details.
9
+ """
10
+
11
+ from pygments.style import Style
12
+ from pygments.token import (Comment, Error, Generic, Keyword, Literal, Name,
13
+ Number, Operator, Punctuation, String, Token)
14
+
15
+ __all__ = ["CoffeeStyle"]
16
+
17
+
18
+ class CoffeeStyle(Style):
19
+ """
20
+ A warm and cozy theme based off gruvbox
21
+ """
22
+
23
+ name = "coffee"
24
+
25
+ background_color = "#262220"
26
+ highlight_color = "#ddd0c0"
27
+
28
+ line_number_color = "#4e4e4e"
29
+ line_number_special_color = "#8f9494"
30
+
31
+ styles = {
32
+ Comment: "#70757A",
33
+ Comment.Hashbang: "#8f9f9f",
34
+ Comment.Preproc: "#fdd0c0",
35
+ Comment.PreprocFile: "#c9b98f",
36
+ Comment.Special: "#af5f5f",
37
+ Error: "#af5f5f",
38
+ Generic.Deleted: "#bb6868",
39
+ Generic.Emph: "italic",
40
+ Generic.Error: "#af5f5f",
41
+ Generic.Inserted: "#849155",
42
+ Generic.Output: "#ddd0c0",
43
+ Generic.Strong: "bold",
44
+ Generic.Traceback: "#af5f5f",
45
+ Keyword: "#919191",
46
+ Keyword.Constant: "#875f5f",
47
+ Keyword.Declaration: "#875f5f",
48
+ Keyword.Namespace: "#875f5f",
49
+ Keyword.Reserved: "#b46276",
50
+ Keyword.Type: "#af875f",
51
+ Literal: "#af875f",
52
+ Name: "#ddd0c0",
53
+ Name.Attribute: "#ddd0c0",
54
+ Name.Builtin: "#ddd0c0",
55
+ Name.Builtin.Pseudo: "#87afaf",
56
+ Name.Class: "#875f5f",
57
+ Name.Constant: "#af8787",
58
+ Name.Decorator: "#fdd0c0",
59
+ Name.Entity: "#ddd0c0",
60
+ Name.Exception: "#877575",
61
+ Name.Function: "#fdd0c0",
62
+ Name.Function.Magic: "#fdd0c0",
63
+ Name.Other: "#ddd0c0",
64
+ Name.Property: "#dfaf87",
65
+ Name.Tag: "#87afaf",
66
+ Name.Variable: "#ddd0c0",
67
+ Number: "#87afaf",
68
+ Operator: "#878787",
69
+ Operator.Word: "#878787",
70
+ Punctuation: "#ddd0c0",
71
+ String: "#c9b98f",
72
+ String.Affix: "#dfaf87",
73
+ String.Doc: "#878787",
74
+ String.Escape: "#af5f5f",
75
+ String.Interpol: "#af5f5f",
76
+ String.Other: "#fdd0c0",
77
+ String.Regex: "#af5f5f",
78
+ String.Symbol: "#af5f5f",
79
+ Token: "#ddd0c0",
80
+ }
@@ -4,7 +4,7 @@
4
4
 
5
5
  A colorful style, inspired by CodeRay.
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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
13
13
  Number, Operator, Generic, Whitespace
14
14
 
15
15
 
16
+ __all__ = ['ColorfulStyle']
17
+
18
+
16
19
  class ColorfulStyle(Style):
17
20
  """
18
21
  A colorful style, inspired by CodeRay.
19
22
  """
23
+ name = 'colorful'
20
24
 
21
25
  styles = {
22
26
  Whitespace: "#bbbbbb",
@@ -70,6 +74,7 @@ class ColorfulStyle(Style):
70
74
  Generic.Error: "#FF0000",
71
75
  Generic.Emph: "italic",
72
76
  Generic.Strong: "bold",
77
+ Generic.EmphStrong: "bold italic",
73
78
  Generic.Prompt: "bold #c65d09",
74
79
  Generic.Output: "#888",
75
80
  Generic.Traceback: "#04D",
@@ -4,7 +4,7 @@
4
4
 
5
5
  The default highlighting 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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
13
13
  Number, Operator, Generic, Whitespace
14
14
 
15
15
 
16
+ __all__ = ['DefaultStyle']
17
+
18
+
16
19
  class DefaultStyle(Style):
17
20
  """
18
21
  The default style (inspired by Emacs 22).
19
22
  """
23
+ name = 'default'
20
24
 
21
25
  background_color = "#f8f8f8"
22
26
 
@@ -63,6 +67,7 @@ class DefaultStyle(Style):
63
67
  Generic.Error: "#E40000",
64
68
  Generic.Emph: "italic",
65
69
  Generic.Strong: "bold",
70
+ Generic.EmphStrong: "bold italic",
66
71
  Generic.Prompt: "bold #000080",
67
72
  Generic.Output: "#717171",
68
73
  Generic.Traceback: "#04D",
@@ -7,7 +7,7 @@
7
7
  Based on the Dracula Theme for pygments by Chris Bracco.
8
8
  See https://github.com/dracula/pygments/tree/fee9ed5613d1086bc01b9d0a5a0e9867a009f571
9
9
 
10
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
10
+ :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
11
11
  :license: BSD, see LICENSE for details.
12
12
  """
13
13
 
@@ -16,87 +16,75 @@ from pygments.token import Keyword, Name, Comment, String, Error, Literal, \
16
16
  Number, Operator, Other, Punctuation, Text, Generic, Whitespace
17
17
 
18
18
 
19
+ __all__ = ['DraculaStyle']
20
+
21
+ background = "#282a36"
22
+ foreground = "#f8f8f2"
23
+ selection = "#44475a"
24
+ comment = "#6272a4"
25
+ cyan = "#8be9fd"
26
+ green = "#50fa7b"
27
+ orange = "#ffb86c"
28
+ pink = "#ff79c6"
29
+ purple = "#bd93f9"
30
+ red = "#ff5555"
31
+ yellow = "#f1fa8c"
32
+
33
+ deletion = "#8b080b"
34
+
19
35
  class DraculaStyle(Style):
36
+ name = 'dracula'
20
37
 
21
- background_color = "#282a36"
22
- highlight_color = "#44475a"
23
- line_number_color = "#f1fa8c"
24
- line_number_background_color = "#44475a"
25
- line_number_special_color = "#50fa7b"
26
- line_number_special_background_color = "#6272a4"
38
+ background_color = background
39
+ highlight_color = selection
40
+ line_number_color = yellow
41
+ line_number_background_color = selection
42
+ line_number_special_color = green
43
+ line_number_special_background_color = comment
27
44
 
28
45
  styles = {
29
- Whitespace: "#f8f8f2",
30
-
31
- Comment: "#6272a4",
32
- Comment.Hashbang: "#6272a4",
33
- Comment.Multiline: "#6272a4",
34
- Comment.Preproc: "#ff79c6",
35
- Comment.Single: "#6272a4",
36
- Comment.Special: "#6272a4",
37
-
38
- Generic: "#f8f8f2",
39
- Generic.Deleted: "#8b080b",
40
- Generic.Emph: "#f8f8f2 underline",
41
- Generic.Error: "#f8f8f2",
42
- Generic.Heading: "#f8f8f2 bold",
43
- Generic.Inserted: "#f8f8f2 bold",
44
- Generic.Output: "#44475a",
45
- Generic.Prompt: "#f8f8f2",
46
- Generic.Strong: "#f8f8f2",
47
- Generic.Subheading: "#f8f8f2 bold",
48
- Generic.Traceback: "#f8f8f2",
49
-
50
- Error: "#f8f8f2",
51
- Keyword: "#ff79c6",
52
- Keyword.Constant: "#ff79c6",
53
- Keyword.Declaration: "#8be9fd italic",
54
- Keyword.Namespace: "#ff79c6",
55
- Keyword.Pseudo: "#ff79c6",
56
- Keyword.Reserved: "#ff79c6",
57
- Keyword.Type: "#8be9fd",
58
- Literal: "#f8f8f2",
59
- Literal.Date: "#f8f8f2",
60
- Name: "#f8f8f2",
61
- Name.Attribute: "#50fa7b",
62
- Name.Builtin: "#8be9fd italic",
63
- Name.Builtin.Pseudo: "#f8f8f2",
64
- Name.Class: "#50fa7b",
65
- Name.Constant: "#f8f8f2",
66
- Name.Decorator: "#f8f8f2",
67
- Name.Entity: "#f8f8f2",
68
- Name.Exception: "#f8f8f2",
69
- Name.Function: "#50fa7b",
70
- Name.Label: "#8be9fd italic",
71
- Name.Namespace: "#f8f8f2",
72
- Name.Other: "#f8f8f2",
73
- Name.Tag: "#ff79c6",
74
- Name.Variable: "#8be9fd italic",
75
- Name.Variable.Class: "#8be9fd italic",
76
- Name.Variable.Global: "#8be9fd italic",
77
- Name.Variable.Instance: "#8be9fd italic",
78
- Number: "#ffb86c",
79
- Number.Bin: "#ffb86c",
80
- Number.Float: "#ffb86c",
81
- Number.Hex: "#ffb86c",
82
- Number.Integer: "#ffb86c",
83
- Number.Integer.Long: "#ffb86c",
84
- Number.Oct: "#ffb86c",
85
- Operator: "#ff79c6",
86
- Operator.Word: "#ff79c6",
87
- Other: "#f8f8f2",
88
- Punctuation: "#f8f8f2",
89
- String: "#bd93f9",
90
- String.Backtick: "#bd93f9",
91
- String.Char: "#bd93f9",
92
- String.Doc: "#bd93f9",
93
- String.Double: "#bd93f9",
94
- String.Escape: "#bd93f9",
95
- String.Heredoc: "#bd93f9",
96
- String.Interpol: "#bd93f9",
97
- String.Other: "#bd93f9",
98
- String.Regex: "#bd93f9",
99
- String.Single: "#bd93f9",
100
- String.Symbol: "#bd93f9",
101
- Text: "#f8f8f2",
46
+ Whitespace: foreground,
47
+
48
+ Comment: comment,
49
+ Comment.Preproc: pink,
50
+
51
+ Generic: foreground,
52
+ Generic.Deleted: deletion,
53
+ Generic.Emph: "underline",
54
+ Generic.Heading: "bold",
55
+ Generic.Inserted: "bold",
56
+ Generic.Output: selection,
57
+ Generic.EmphStrong: "underline",
58
+ Generic.Subheading: "bold",
59
+
60
+ Error: foreground,
61
+
62
+ Keyword: pink,
63
+ Keyword.Constant: pink,
64
+ Keyword.Declaration: cyan + " italic",
65
+ Keyword.Type: cyan,
66
+
67
+ Literal: foreground,
68
+
69
+ Name: foreground,
70
+ Name.Attribute: green,
71
+ Name.Builtin: cyan + " italic",
72
+ Name.Builtin.Pseudo: foreground,
73
+ Name.Class: green,
74
+ Name.Function: green,
75
+ Name.Label: cyan + " italic",
76
+ Name.Tag: pink,
77
+ Name.Variable: cyan + " italic",
78
+
79
+ Number: orange,
80
+
81
+ Operator: pink,
82
+
83
+ Other: foreground,
84
+
85
+ Punctuation: foreground,
86
+
87
+ String: purple,
88
+
89
+ Text: foreground,
102
90
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  A highlighting style for Pygments, inspired by Emacs.
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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
13
13
  Number, Operator, Generic, Whitespace
14
14
 
15
15
 
16
+ __all__ = ['EmacsStyle']
17
+
18
+
16
19
  class EmacsStyle(Style):
17
20
  """
18
21
  The default style (inspired by Emacs 22).
19
22
  """
23
+ name = 'emacs'
20
24
 
21
25
  background_color = "#f8f8f8"
22
26
 
@@ -62,6 +66,7 @@ class EmacsStyle(Style):
62
66
  Generic.Error: "#FF0000",
63
67
  Generic.Emph: "italic",
64
68
  Generic.Strong: "bold",
69
+ Generic.EmphStrong: "bold italic",
65
70
  Generic.Prompt: "bold #000080",
66
71
  Generic.Output: "#888",
67
72
  Generic.Traceback: "#04D",
@@ -4,7 +4,7 @@
4
4
 
5
5
  A modern style based on the VIM pyte theme.
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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
13
13
  Number, Operator, Generic, Whitespace
14
14
 
15
15
 
16
+ __all__ = ['FriendlyStyle']
17
+
18
+
16
19
  class FriendlyStyle(Style):
17
20
  """
18
21
  A modern style based on the VIM pyte theme.
19
22
  """
23
+ name = 'friendly'
20
24
 
21
25
  background_color = "#f0f0f0"
22
26
  line_number_color = "#666666"
@@ -63,6 +67,7 @@ class FriendlyStyle(Style):
63
67
  Generic.Error: "#FF0000",
64
68
  Generic.Emph: "italic",
65
69
  Generic.Strong: "bold",
70
+ Generic.EmphStrong: "bold italic",
66
71
  Generic.Prompt: "bold #c65d09",
67
72
  Generic.Output: "#888",
68
73
  Generic.Traceback: "#04D",