pygments.rb 2.3.1 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (324) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/.rubocop.yml +7 -0
  4. data/CHANGELOG.adoc +4 -0
  5. data/README.adoc +1 -1
  6. data/bench.rb +1 -1
  7. data/lib/pygments/popen.rb +3 -7
  8. data/lib/pygments/version.rb +1 -1
  9. data/pygments.rb.gemspec +2 -2
  10. data/test/test_pygments.rb +0 -19
  11. data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/AUTHORS +21 -1
  12. data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/LICENSE +1 -1
  13. data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/METADATA +19 -11
  14. data/vendor/pygments-main/Pygments-2.15.1.dist-info/RECORD +614 -0
  15. data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/WHEEL +1 -1
  16. data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/entry_points.txt +0 -1
  17. data/vendor/pygments-main/bin/pygmentize +1 -1
  18. data/vendor/pygments-main/pygments/__init__.py +20 -22
  19. data/vendor/pygments-main/pygments/__main__.py +1 -1
  20. data/vendor/pygments-main/pygments/cmdline.py +74 -8
  21. data/vendor/pygments-main/pygments/console.py +1 -1
  22. data/vendor/pygments-main/pygments/filter.py +1 -1
  23. data/vendor/pygments-main/pygments/filters/__init__.py +6 -3
  24. data/vendor/pygments-main/pygments/formatter.py +41 -11
  25. data/vendor/pygments-main/pygments/formatters/__init__.py +21 -16
  26. data/vendor/pygments-main/pygments/formatters/_mapping.py +5 -65
  27. data/vendor/pygments-main/pygments/formatters/bbcode.py +1 -1
  28. data/vendor/pygments-main/pygments/formatters/groff.py +170 -0
  29. data/vendor/pygments-main/pygments/formatters/html.py +54 -32
  30. data/vendor/pygments-main/pygments/formatters/img.py +9 -5
  31. data/vendor/pygments-main/pygments/formatters/irc.py +6 -33
  32. data/vendor/pygments-main/pygments/formatters/latex.py +24 -14
  33. data/vendor/pygments-main/pygments/formatters/other.py +1 -1
  34. data/vendor/pygments-main/pygments/formatters/pangomarkup.py +1 -1
  35. data/vendor/pygments-main/pygments/formatters/rtf.py +1 -1
  36. data/vendor/pygments-main/pygments/formatters/svg.py +1 -1
  37. data/vendor/pygments-main/pygments/formatters/terminal.py +1 -3
  38. data/vendor/pygments-main/pygments/formatters/terminal256.py +2 -4
  39. data/vendor/pygments-main/pygments/lexer.py +101 -32
  40. data/vendor/pygments-main/pygments/lexers/__init__.py +50 -29
  41. data/vendor/pygments-main/pygments/lexers/_ada_builtins.py +103 -0
  42. data/vendor/pygments-main/pygments/lexers/_asy_builtins.py +1 -1
  43. data/vendor/pygments-main/pygments/lexers/_cl_builtins.py +1 -1
  44. data/vendor/pygments-main/pygments/lexers/_cocoa_builtins.py +2 -2
  45. data/vendor/pygments-main/pygments/lexers/_csound_builtins.py +21 -6
  46. data/vendor/pygments-main/pygments/lexers/_css_builtins.py +558 -0
  47. data/vendor/pygments-main/pygments/lexers/_julia_builtins.py +10 -0
  48. data/vendor/pygments-main/pygments/lexers/_lasso_builtins.py +1 -1
  49. data/vendor/pygments-main/pygments/lexers/_lilypond_builtins.py +4932 -0
  50. data/vendor/pygments-main/pygments/lexers/_lua_builtins.py +11 -18
  51. data/vendor/pygments-main/pygments/lexers/_mapping.py +71 -82
  52. data/vendor/pygments-main/pygments/lexers/_mql_builtins.py +1 -1
  53. data/vendor/pygments-main/pygments/lexers/_mysql_builtins.py +58 -4
  54. data/vendor/pygments-main/pygments/lexers/_openedge_builtins.py +1 -1
  55. data/vendor/pygments-main/pygments/lexers/_php_builtins.py +408 -1835
  56. data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +70 -8
  57. data/vendor/pygments-main/pygments/lexers/_qlik_builtins.py +666 -0
  58. data/vendor/pygments-main/pygments/lexers/_scheme_builtins.py +1609 -0
  59. data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +3 -3
  60. data/vendor/pygments-main/pygments/lexers/_sourcemod_builtins.py +9 -18
  61. data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +185 -94
  62. data/vendor/pygments-main/pygments/lexers/_stata_builtins.py +1 -1
  63. data/vendor/pygments-main/pygments/lexers/_tsql_builtins.py +1 -1
  64. data/vendor/pygments-main/pygments/lexers/_usd_builtins.py +1 -1
  65. data/vendor/pygments-main/pygments/lexers/_vbscript_builtins.py +1 -1
  66. data/vendor/pygments-main/pygments/lexers/_vim_builtins.py +1 -1
  67. data/vendor/pygments-main/pygments/lexers/actionscript.py +15 -14
  68. data/vendor/pygments-main/pygments/lexers/ada.py +144 -0
  69. data/vendor/pygments-main/pygments/lexers/agile.py +1 -1
  70. data/vendor/pygments-main/pygments/lexers/algebra.py +72 -9
  71. data/vendor/pygments-main/pygments/lexers/ambient.py +8 -7
  72. data/vendor/pygments-main/pygments/lexers/amdgpu.py +4 -3
  73. data/vendor/pygments-main/pygments/lexers/ampl.py +10 -8
  74. data/vendor/pygments-main/pygments/lexers/apdlexer.py +164 -20
  75. data/vendor/pygments-main/pygments/lexers/apl.py +6 -5
  76. data/vendor/pygments-main/pygments/lexers/archetype.py +23 -21
  77. data/vendor/pygments-main/pygments/lexers/arrow.py +10 -9
  78. data/vendor/pygments-main/pygments/lexers/arturo.py +250 -0
  79. data/vendor/pygments-main/pygments/lexers/asc.py +9 -5
  80. data/vendor/pygments-main/pygments/lexers/asm.py +68 -63
  81. data/vendor/pygments-main/pygments/lexers/automation.py +7 -5
  82. data/vendor/pygments-main/pygments/lexers/bare.py +20 -21
  83. data/vendor/pygments-main/pygments/lexers/basic.py +45 -41
  84. data/vendor/pygments-main/pygments/lexers/bdd.py +58 -0
  85. data/vendor/pygments-main/pygments/lexers/berry.py +99 -0
  86. data/vendor/pygments-main/pygments/lexers/bibtex.py +6 -6
  87. data/vendor/pygments-main/pygments/lexers/boa.py +4 -8
  88. data/vendor/pygments-main/pygments/lexers/business.py +18 -18
  89. data/vendor/pygments-main/pygments/lexers/c_cpp.py +80 -40
  90. data/vendor/pygments-main/pygments/lexers/c_like.py +21 -19
  91. data/vendor/pygments-main/pygments/lexers/capnproto.py +6 -8
  92. data/vendor/pygments-main/pygments/lexers/carbon.py +96 -0
  93. data/vendor/pygments-main/pygments/lexers/cddl.py +16 -33
  94. data/vendor/pygments-main/pygments/lexers/chapel.py +14 -9
  95. data/vendor/pygments-main/pygments/lexers/clean.py +3 -2
  96. data/vendor/pygments-main/pygments/lexers/comal.py +80 -0
  97. data/vendor/pygments-main/pygments/lexers/compiled.py +3 -2
  98. data/vendor/pygments-main/pygments/lexers/configs.py +235 -120
  99. data/vendor/pygments-main/pygments/lexers/console.py +5 -4
  100. data/vendor/pygments-main/pygments/lexers/cplint.py +44 -0
  101. data/vendor/pygments-main/pygments/lexers/crystal.py +22 -23
  102. data/vendor/pygments-main/pygments/lexers/csound.py +19 -17
  103. data/vendor/pygments-main/pygments/lexers/css.py +67 -159
  104. data/vendor/pygments-main/pygments/lexers/d.py +15 -12
  105. data/vendor/pygments-main/pygments/lexers/dalvik.py +14 -11
  106. data/vendor/pygments-main/pygments/lexers/data.py +119 -49
  107. data/vendor/pygments-main/pygments/lexers/dax.py +136 -0
  108. data/vendor/pygments-main/pygments/lexers/devicetree.py +9 -8
  109. data/vendor/pygments-main/pygments/lexers/diff.py +23 -19
  110. data/vendor/pygments-main/pygments/lexers/dotnet.py +216 -81
  111. data/vendor/pygments-main/pygments/lexers/dsls.py +86 -64
  112. data/vendor/pygments-main/pygments/lexers/dylan.py +16 -15
  113. data/vendor/pygments-main/pygments/lexers/ecl.py +46 -38
  114. data/vendor/pygments-main/pygments/lexers/eiffel.py +15 -10
  115. data/vendor/pygments-main/pygments/lexers/elm.py +12 -8
  116. data/vendor/pygments-main/pygments/lexers/elpi.py +165 -0
  117. data/vendor/pygments-main/pygments/lexers/email.py +21 -39
  118. data/vendor/pygments-main/pygments/lexers/erlang.py +21 -22
  119. data/vendor/pygments-main/pygments/lexers/esoteric.py +28 -30
  120. data/vendor/pygments-main/pygments/lexers/ezhil.py +10 -9
  121. data/vendor/pygments-main/pygments/lexers/factor.py +104 -83
  122. data/vendor/pygments-main/pygments/lexers/fantom.py +31 -29
  123. data/vendor/pygments-main/pygments/lexers/felix.py +18 -14
  124. data/vendor/pygments-main/pygments/lexers/fift.py +67 -0
  125. data/vendor/pygments-main/pygments/lexers/floscript.py +7 -7
  126. data/vendor/pygments-main/pygments/lexers/forth.py +8 -6
  127. data/vendor/pygments-main/pygments/lexers/fortran.py +16 -11
  128. data/vendor/pygments-main/pygments/lexers/foxpro.py +2 -2
  129. data/vendor/pygments-main/pygments/lexers/freefem.py +7 -10
  130. data/vendor/pygments-main/pygments/lexers/func.py +108 -0
  131. data/vendor/pygments-main/pygments/lexers/functional.py +1 -1
  132. data/vendor/pygments-main/pygments/lexers/futhark.py +12 -17
  133. data/vendor/pygments-main/pygments/lexers/gcodelexer.py +1 -2
  134. data/vendor/pygments-main/pygments/lexers/gdscript.py +76 -233
  135. data/vendor/pygments-main/pygments/lexers/go.py +12 -14
  136. data/vendor/pygments-main/pygments/lexers/grammar_notation.py +22 -26
  137. data/vendor/pygments-main/pygments/lexers/graph.py +36 -15
  138. data/vendor/pygments-main/pygments/lexers/graphics.py +37 -38
  139. data/vendor/pygments-main/pygments/lexers/graphviz.py +2 -1
  140. data/vendor/pygments-main/pygments/lexers/gsql.py +39 -27
  141. data/vendor/pygments-main/pygments/lexers/haskell.py +73 -71
  142. data/vendor/pygments-main/pygments/lexers/haxe.py +13 -11
  143. data/vendor/pygments-main/pygments/lexers/hdl.py +31 -34
  144. data/vendor/pygments-main/pygments/lexers/hexdump.py +21 -21
  145. data/vendor/pygments-main/pygments/lexers/html.py +11 -19
  146. data/vendor/pygments-main/pygments/lexers/idl.py +10 -5
  147. data/vendor/pygments-main/pygments/lexers/igor.py +3 -2
  148. data/vendor/pygments-main/pygments/lexers/inferno.py +9 -8
  149. data/vendor/pygments-main/pygments/lexers/installers.py +39 -33
  150. data/vendor/pygments-main/pygments/lexers/int_fiction.py +35 -20
  151. data/vendor/pygments-main/pygments/lexers/iolang.py +9 -9
  152. data/vendor/pygments-main/pygments/lexers/j.py +20 -13
  153. data/vendor/pygments-main/pygments/lexers/javascript.py +183 -149
  154. data/vendor/pygments-main/pygments/lexers/jmespath.py +68 -0
  155. data/vendor/pygments-main/pygments/lexers/jslt.py +4 -3
  156. data/vendor/pygments-main/pygments/lexers/jsonnet.py +168 -0
  157. data/vendor/pygments-main/pygments/lexers/julia.py +44 -32
  158. data/vendor/pygments-main/pygments/lexers/jvm.py +161 -140
  159. data/vendor/pygments-main/pygments/lexers/kuin.py +93 -59
  160. data/vendor/pygments-main/pygments/lexers/lilypond.py +226 -0
  161. data/vendor/pygments-main/pygments/lexers/lisp.py +244 -107
  162. data/vendor/pygments-main/pygments/lexers/macaulay2.py +1739 -0
  163. data/vendor/pygments-main/pygments/lexers/make.py +21 -16
  164. data/vendor/pygments-main/pygments/lexers/markup.py +752 -11
  165. data/vendor/pygments-main/pygments/lexers/math.py +1 -1
  166. data/vendor/pygments-main/pygments/lexers/matlab.py +18 -3
  167. data/vendor/pygments-main/pygments/lexers/maxima.py +85 -0
  168. data/vendor/pygments-main/pygments/lexers/meson.py +10 -25
  169. data/vendor/pygments-main/pygments/lexers/mime.py +2 -2
  170. data/vendor/pygments-main/pygments/lexers/minecraft.py +394 -0
  171. data/vendor/pygments-main/pygments/lexers/mips.py +128 -0
  172. data/vendor/pygments-main/pygments/lexers/ml.py +9 -6
  173. data/vendor/pygments-main/pygments/lexers/modeling.py +12 -8
  174. data/vendor/pygments-main/pygments/lexers/modula2.py +3 -2
  175. data/vendor/pygments-main/pygments/lexers/monte.py +3 -2
  176. data/vendor/pygments-main/pygments/lexers/mosel.py +1 -1
  177. data/vendor/pygments-main/pygments/lexers/ncl.py +1 -1
  178. data/vendor/pygments-main/pygments/lexers/nimrod.py +62 -20
  179. data/vendor/pygments-main/pygments/lexers/nit.py +3 -2
  180. data/vendor/pygments-main/pygments/lexers/nix.py +5 -5
  181. data/vendor/pygments-main/pygments/lexers/oberon.py +2 -2
  182. data/vendor/pygments-main/pygments/lexers/objective.py +6 -4
  183. data/vendor/pygments-main/pygments/lexers/ooc.py +3 -2
  184. data/vendor/pygments-main/pygments/lexers/other.py +1 -1
  185. data/vendor/pygments-main/pygments/lexers/parasail.py +3 -2
  186. data/vendor/pygments-main/pygments/lexers/parsers.py +23 -21
  187. data/vendor/pygments-main/pygments/lexers/pascal.py +196 -198
  188. data/vendor/pygments-main/pygments/lexers/pawn.py +1 -1
  189. data/vendor/pygments-main/pygments/lexers/perl.py +17 -15
  190. data/vendor/pygments-main/pygments/lexers/phix.py +364 -0
  191. data/vendor/pygments-main/pygments/lexers/php.py +35 -20
  192. data/vendor/pygments-main/pygments/lexers/pointless.py +3 -2
  193. data/vendor/pygments-main/pygments/lexers/pony.py +1 -1
  194. data/vendor/pygments-main/pygments/lexers/praat.py +41 -38
  195. data/vendor/pygments-main/pygments/lexers/procfile.py +2 -3
  196. data/vendor/pygments-main/pygments/lexers/prolog.py +7 -8
  197. data/vendor/pygments-main/pygments/lexers/promql.py +5 -12
  198. data/vendor/pygments-main/pygments/lexers/python.py +145 -119
  199. data/vendor/pygments-main/pygments/lexers/q.py +188 -0
  200. data/vendor/pygments-main/pygments/lexers/qlik.py +117 -0
  201. data/vendor/pygments-main/pygments/lexers/qvt.py +1 -1
  202. data/vendor/pygments-main/pygments/lexers/r.py +4 -4
  203. data/vendor/pygments-main/pygments/lexers/rdf.py +3 -3
  204. data/vendor/pygments-main/pygments/lexers/rebol.py +1 -12
  205. data/vendor/pygments-main/pygments/lexers/resource.py +1 -1
  206. data/vendor/pygments-main/pygments/lexers/ride.py +3 -2
  207. data/vendor/pygments-main/pygments/lexers/rita.py +43 -0
  208. data/vendor/pygments-main/pygments/lexers/rnc.py +3 -2
  209. data/vendor/pygments-main/pygments/lexers/roboconf.py +3 -3
  210. data/vendor/pygments-main/pygments/lexers/robotframework.py +6 -5
  211. data/vendor/pygments-main/pygments/lexers/ruby.py +24 -24
  212. data/vendor/pygments-main/pygments/lexers/rust.py +3 -2
  213. data/vendor/pygments-main/pygments/lexers/sas.py +2 -2
  214. data/vendor/pygments-main/pygments/lexers/savi.py +170 -0
  215. data/vendor/pygments-main/pygments/lexers/scdoc.py +4 -7
  216. data/vendor/pygments-main/pygments/lexers/scripting.py +24 -21
  217. data/vendor/pygments-main/pygments/lexers/sgf.py +6 -6
  218. data/vendor/pygments-main/pygments/lexers/shell.py +29 -21
  219. data/vendor/pygments-main/pygments/lexers/sieve.py +14 -4
  220. data/vendor/pygments-main/pygments/lexers/slash.py +1 -1
  221. data/vendor/pygments-main/pygments/lexers/smalltalk.py +5 -3
  222. data/vendor/pygments-main/pygments/lexers/smithy.py +5 -6
  223. data/vendor/pygments-main/pygments/lexers/smv.py +1 -1
  224. data/vendor/pygments-main/pygments/lexers/snobol.py +1 -1
  225. data/vendor/pygments-main/pygments/lexers/solidity.py +3 -7
  226. data/vendor/pygments-main/pygments/lexers/sophia.py +103 -0
  227. data/vendor/pygments-main/pygments/lexers/special.py +2 -5
  228. data/vendor/pygments-main/pygments/lexers/spice.py +71 -0
  229. data/vendor/pygments-main/pygments/lexers/sql.py +212 -17
  230. data/vendor/pygments-main/pygments/lexers/srcinfo.py +62 -0
  231. data/vendor/pygments-main/pygments/lexers/stata.py +4 -3
  232. data/vendor/pygments-main/pygments/lexers/supercollider.py +4 -3
  233. data/vendor/pygments-main/pygments/lexers/tal.py +74 -0
  234. data/vendor/pygments-main/pygments/lexers/tcl.py +21 -16
  235. data/vendor/pygments-main/pygments/lexers/teal.py +9 -8
  236. data/vendor/pygments-main/pygments/lexers/templates.py +62 -29
  237. data/vendor/pygments-main/pygments/lexers/teraterm.py +12 -20
  238. data/vendor/pygments-main/pygments/lexers/testing.py +6 -2
  239. data/vendor/pygments-main/pygments/lexers/text.py +3 -2
  240. data/vendor/pygments-main/pygments/lexers/textedit.py +41 -7
  241. data/vendor/pygments-main/pygments/lexers/textfmts.py +7 -5
  242. data/vendor/pygments-main/pygments/lexers/theorem.py +42 -36
  243. data/vendor/pygments-main/pygments/lexers/thingsdb.py +2 -4
  244. data/vendor/pygments-main/pygments/lexers/tlb.py +57 -0
  245. data/vendor/pygments-main/pygments/lexers/tnt.py +3 -4
  246. data/vendor/pygments-main/pygments/lexers/trafficscript.py +2 -4
  247. data/vendor/pygments-main/pygments/lexers/typoscript.py +2 -3
  248. data/vendor/pygments-main/pygments/lexers/ul4.py +267 -0
  249. data/vendor/pygments-main/pygments/lexers/unicon.py +1 -1
  250. data/vendor/pygments-main/pygments/lexers/urbi.py +4 -4
  251. data/vendor/pygments-main/pygments/lexers/usd.py +2 -1
  252. data/vendor/pygments-main/pygments/lexers/varnish.py +5 -5
  253. data/vendor/pygments-main/pygments/lexers/verification.py +4 -3
  254. data/vendor/pygments-main/pygments/lexers/web.py +1 -1
  255. data/vendor/pygments-main/pygments/lexers/webassembly.py +5 -5
  256. data/vendor/pygments-main/pygments/lexers/webidl.py +2 -1
  257. data/vendor/pygments-main/pygments/lexers/webmisc.py +90 -71
  258. data/vendor/pygments-main/pygments/lexers/wgsl.py +407 -0
  259. data/vendor/pygments-main/pygments/lexers/whiley.py +2 -1
  260. data/vendor/pygments-main/pygments/lexers/wowtoc.py +120 -0
  261. data/vendor/pygments-main/pygments/lexers/wren.py +99 -0
  262. data/vendor/pygments-main/pygments/lexers/x10.py +5 -6
  263. data/vendor/pygments-main/pygments/lexers/xorg.py +3 -2
  264. data/vendor/pygments-main/pygments/lexers/yang.py +6 -5
  265. data/vendor/pygments-main/pygments/lexers/zig.py +3 -2
  266. data/vendor/pygments-main/pygments/modeline.py +1 -1
  267. data/vendor/pygments-main/pygments/plugin.py +28 -9
  268. data/vendor/pygments-main/pygments/regexopt.py +1 -1
  269. data/vendor/pygments-main/pygments/scanner.py +2 -2
  270. data/vendor/pygments-main/pygments/sphinxext.py +63 -1
  271. data/vendor/pygments-main/pygments/style.py +7 -1
  272. data/vendor/pygments-main/pygments/styles/__init__.py +19 -5
  273. data/vendor/pygments-main/pygments/styles/abap.py +2 -2
  274. data/vendor/pygments-main/pygments/styles/algol.py +1 -2
  275. data/vendor/pygments-main/pygments/styles/algol_nu.py +1 -2
  276. data/vendor/pygments-main/pygments/styles/arduino.py +2 -3
  277. data/vendor/pygments-main/pygments/styles/autumn.py +1 -3
  278. data/vendor/pygments-main/pygments/styles/borland.py +1 -3
  279. data/vendor/pygments-main/pygments/styles/bw.py +1 -2
  280. data/vendor/pygments-main/pygments/styles/colorful.py +1 -3
  281. data/vendor/pygments-main/pygments/styles/default.py +13 -14
  282. data/vendor/pygments-main/pygments/styles/dracula.py +102 -0
  283. data/vendor/pygments-main/pygments/styles/emacs.py +1 -2
  284. data/vendor/pygments-main/pygments/styles/friendly.py +1 -2
  285. data/vendor/pygments-main/pygments/styles/friendly_grayscale.py +75 -0
  286. data/vendor/pygments-main/pygments/styles/fruity.py +1 -1
  287. data/vendor/pygments-main/pygments/styles/gh_dark.py +107 -0
  288. data/vendor/pygments-main/pygments/styles/gruvbox.py +4 -2
  289. data/vendor/pygments-main/pygments/styles/igor.py +1 -2
  290. data/vendor/pygments-main/pygments/styles/inkpot.py +3 -2
  291. data/vendor/pygments-main/pygments/styles/lilypond.py +56 -0
  292. data/vendor/pygments-main/pygments/styles/lovelace.py +1 -3
  293. data/vendor/pygments-main/pygments/styles/manni.py +1 -1
  294. data/vendor/pygments-main/pygments/styles/material.py +1 -2
  295. data/vendor/pygments-main/pygments/styles/monokai.py +3 -3
  296. data/vendor/pygments-main/pygments/styles/murphy.py +1 -3
  297. data/vendor/pygments-main/pygments/styles/native.py +11 -11
  298. data/vendor/pygments-main/pygments/styles/nord.py +150 -0
  299. data/vendor/pygments-main/pygments/styles/onedark.py +59 -0
  300. data/vendor/pygments-main/pygments/styles/paraiso_dark.py +1 -6
  301. data/vendor/pygments-main/pygments/styles/paraiso_light.py +1 -6
  302. data/vendor/pygments-main/pygments/styles/pastie.py +1 -3
  303. data/vendor/pygments-main/pygments/styles/perldoc.py +1 -2
  304. data/vendor/pygments-main/pygments/styles/rainbow_dash.py +3 -3
  305. data/vendor/pygments-main/pygments/styles/rrt.py +3 -2
  306. data/vendor/pygments-main/pygments/styles/sas.py +2 -4
  307. data/vendor/pygments-main/pygments/styles/solarized.py +1 -1
  308. data/vendor/pygments-main/pygments/styles/staroffice.py +26 -0
  309. data/vendor/pygments-main/pygments/styles/stata_dark.py +4 -6
  310. data/vendor/pygments-main/pygments/styles/stata_light.py +1 -2
  311. data/vendor/pygments-main/pygments/styles/tango.py +2 -3
  312. data/vendor/pygments-main/pygments/styles/trac.py +1 -3
  313. data/vendor/pygments-main/pygments/styles/vim.py +1 -2
  314. data/vendor/pygments-main/pygments/styles/vs.py +1 -2
  315. data/vendor/pygments-main/pygments/styles/xcode.py +1 -3
  316. data/vendor/pygments-main/pygments/styles/zenburn.py +4 -6
  317. data/vendor/pygments-main/pygments/token.py +2 -1
  318. data/vendor/pygments-main/pygments/unistring.py +4 -6
  319. data/vendor/pygments-main/pygments/util.py +27 -5
  320. metadata +59 -14
  321. data/vendor/pygments-main/Pygments-2.10.0.dist-info/RECORD +0 -524
  322. /data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/INSTALLER +0 -0
  323. /data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/REQUESTED +0 -0
  324. /data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,666 @@
1
+ """
2
+ pygments.lexers._qlik_builtins
3
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4
+
5
+ Qlik builtins.
6
+
7
+ :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
8
+ :license: BSD, see LICENSE for details.
9
+ """
10
+
11
+ # operators
12
+ # see https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/Operators/operators.htm
13
+ OPERATORS_LIST = {
14
+ "words": [
15
+ # Bit operators
16
+ "bitnot",
17
+ "bitand",
18
+ "bitor",
19
+ "bitxor",
20
+ # Logical operators
21
+ "and",
22
+ "or",
23
+ "not",
24
+ "xor",
25
+ # Relational operators
26
+ "precedes",
27
+ "follows",
28
+ # String operators
29
+ "like",
30
+ ],
31
+ "symbols": [
32
+ # Bit operators
33
+ ">>",
34
+ "<<",
35
+ # Logical operators
36
+ # Numeric operators
37
+ "+",
38
+ "-",
39
+ "/",
40
+ "*",
41
+ # Relational operators
42
+ "<",
43
+ "<=",
44
+ ">",
45
+ ">=",
46
+ "=",
47
+ "<>",
48
+ # String operators
49
+ "&",
50
+ ],
51
+ }
52
+
53
+ # SCRIPT STATEMENTS
54
+ # see https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/
55
+ STATEMENT_LIST = [
56
+ # control statements
57
+ "for",
58
+ "each",
59
+ "in",
60
+ "next",
61
+ "do",
62
+ "while",
63
+ "until",
64
+ "unless",
65
+ "loop",
66
+ "return",
67
+ "switch",
68
+ "case",
69
+ "default",
70
+ "if",
71
+ "else",
72
+ "endif",
73
+ "then",
74
+ "end",
75
+ "exit",
76
+ "script",
77
+ "switch",
78
+ # prefixes
79
+ "Add",
80
+ "Buffer",
81
+ "Concatenate",
82
+ "Crosstable",
83
+ "First",
84
+ "Generic",
85
+ "Hierarchy",
86
+ "HierarchyBelongsTo",
87
+ "Inner",
88
+ "IntervalMatch",
89
+ "Join",
90
+ "Keep",
91
+ "Left",
92
+ "Mapping",
93
+ "Merge",
94
+ "NoConcatenate",
95
+ "Outer",
96
+ "Partial reload",
97
+ "Replace",
98
+ "Right",
99
+ "Sample",
100
+ "Semantic",
101
+ "Unless",
102
+ "When",
103
+ # regular statements
104
+ "Alias", # alias ... as ...
105
+ "as",
106
+ "AutoNumber",
107
+ "Binary",
108
+ "Comment field", # comment fields ... using ...
109
+ "Comment fields", # comment field ... with ...
110
+ "using",
111
+ "with",
112
+ "Comment table", # comment table ... with ...
113
+ "Comment tables", # comment tables ... using ...
114
+ "Connect",
115
+ "ODBC", # ODBC CONNECT TO ...
116
+ "OLEBD", # OLEDB CONNECT TO ...
117
+ "CUSTOM", # CUSTOM CONNECT TO ...
118
+ "LIB", # LIB CONNECT TO ...
119
+ "Declare",
120
+ "Derive",
121
+ "From",
122
+ "explicit",
123
+ "implicit",
124
+ "Direct Query",
125
+ "dimension",
126
+ "measure",
127
+ "Directory",
128
+ "Disconnect",
129
+ "Drop field",
130
+ "Drop fields",
131
+ "Drop table",
132
+ "Drop tables",
133
+ "Execute",
134
+ "FlushLog",
135
+ "Force",
136
+ "capitalization",
137
+ "case upper",
138
+ "case lower",
139
+ "case mixed",
140
+ "Load",
141
+ "distinct",
142
+ "from",
143
+ "inline",
144
+ "resident",
145
+ "from_field",
146
+ "autogenerate",
147
+ "extension",
148
+ "where",
149
+ "group by",
150
+ "order by",
151
+ "asc",
152
+ "desc",
153
+ "Let",
154
+ "Loosen Table",
155
+ "Map",
156
+ "NullAsNull",
157
+ "NullAsValue",
158
+ "Qualify",
159
+ "Rem",
160
+ "Rename field",
161
+ "Rename fields",
162
+ "Rename table",
163
+ "Rename tables",
164
+ "Search",
165
+ "include",
166
+ "exclude",
167
+ "Section",
168
+ "access",
169
+ "application",
170
+ "Select",
171
+ "Set",
172
+ "Sleep",
173
+ "SQL",
174
+ "SQLColumns",
175
+ "SQLTables",
176
+ "SQLTypes",
177
+ "Star",
178
+ "Store",
179
+ "Tag",
180
+ "Trace",
181
+ "Unmap",
182
+ "Unqualify",
183
+ "Untag",
184
+ # Qualifiers
185
+ "total",
186
+ ]
187
+
188
+ # Script functions
189
+ # see https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/functions-in-scripts-chart-expressions.htm
190
+ SCRIPT_FUNCTIONS = [
191
+ # Basic aggregation functions in the data load script
192
+ "FirstSortedValue",
193
+ "Max",
194
+ "Min",
195
+ "Mode",
196
+ "Only",
197
+ "Sum",
198
+ # Counter aggregation functions in the data load script
199
+ "Count",
200
+ "MissingCount",
201
+ "NullCount",
202
+ "NumericCount",
203
+ "TextCount",
204
+ # Financial aggregation functions in the data load script
205
+ "IRR",
206
+ "XIRR",
207
+ "NPV",
208
+ "XNPV",
209
+ # Statistical aggregation functions in the data load script
210
+ "Avg",
211
+ "Correl",
212
+ "Fractile",
213
+ "FractileExc",
214
+ "Kurtosis",
215
+ "LINEST_B" "LINEST_df",
216
+ "LINEST_f",
217
+ "LINEST_m",
218
+ "LINEST_r2",
219
+ "LINEST_seb",
220
+ "LINEST_sem",
221
+ "LINEST_sey",
222
+ "LINEST_ssreg",
223
+ "Linest_ssresid",
224
+ "Median",
225
+ "Skew",
226
+ "Stdev",
227
+ "Sterr",
228
+ "STEYX",
229
+ # Statistical test functions
230
+ "Chi2Test_chi2",
231
+ "Chi2Test_df",
232
+ "Chi2Test_p",
233
+ # Two independent samples t-tests
234
+ "ttest_conf",
235
+ "ttest_df",
236
+ "ttest_dif",
237
+ "ttest_lower",
238
+ "ttest_sig",
239
+ "ttest_sterr",
240
+ "ttest_t",
241
+ "ttest_upper",
242
+ # Two independent weighted samples t-tests
243
+ "ttestw_conf",
244
+ "ttestw_df",
245
+ "ttestw_dif",
246
+ "ttestw_lower",
247
+ "ttestw_sig",
248
+ "ttestw_sterr",
249
+ "ttestw_t",
250
+ "ttestw_upper",
251
+ # One sample t-tests
252
+ "ttest1_conf",
253
+ "ttest1_df",
254
+ "ttest1_dif",
255
+ "ttest1_lower",
256
+ "ttest1_sig",
257
+ "ttest1_sterr",
258
+ "ttest1_t",
259
+ "ttest1_upper",
260
+ # One weighted sample t-tests
261
+ "ttest1w_conf",
262
+ "ttest1w_df",
263
+ "ttest1w_dif",
264
+ "ttest1w_lower",
265
+ "ttest1w_sig",
266
+ "ttest1w_sterr",
267
+ "ttest1w_t",
268
+ "ttest1w_upper",
269
+ # One column format functions
270
+ "ztest_conf",
271
+ "ztest_dif",
272
+ "ztest_sig",
273
+ "ztest_sterr",
274
+ "ztest_z",
275
+ "ztest_lower",
276
+ "ztest_upper",
277
+ # Weighted two-column format functions
278
+ "ztestw_conf",
279
+ "ztestw_dif",
280
+ "ztestw_lower",
281
+ "ztestw_sig",
282
+ "ztestw_sterr",
283
+ "ztestw_upper",
284
+ "ztestw_z",
285
+ # String aggregation functions in the data load script
286
+ "Concat",
287
+ "FirstValue",
288
+ "LastValue",
289
+ "MaxString",
290
+ "MinString",
291
+ # Synthetic dimension functions
292
+ "ValueList",
293
+ "ValueLoop",
294
+ # Color functions
295
+ "ARGB",
296
+ "HSL",
297
+ "RGB",
298
+ "Color",
299
+ "Colormix1",
300
+ "Colormix2",
301
+ "SysColor",
302
+ "ColorMapHue",
303
+ "ColorMapJet",
304
+ "black",
305
+ "blue",
306
+ "brown",
307
+ "cyan",
308
+ "darkgray",
309
+ "green",
310
+ "lightblue",
311
+ "lightcyan",
312
+ "lightgray",
313
+ "lightgreen",
314
+ "lightmagenta",
315
+ "lightred",
316
+ "magenta",
317
+ "red",
318
+ "white",
319
+ "yellow",
320
+ # Conditional functions
321
+ "alt",
322
+ "class",
323
+ "coalesce",
324
+ "if",
325
+ "match",
326
+ "mixmatch",
327
+ "pick",
328
+ "wildmatch",
329
+ # Counter functions
330
+ "autonumber",
331
+ "autonumberhash128",
332
+ "autonumberhash256",
333
+ "IterNo",
334
+ "RecNo",
335
+ "RowNo",
336
+ # Integer expressions of time
337
+ "second",
338
+ "minute",
339
+ "hour",
340
+ "day",
341
+ "week",
342
+ "month",
343
+ "year",
344
+ "weekyear",
345
+ "weekday",
346
+ # Timestamp functions
347
+ "now",
348
+ "today",
349
+ "LocalTime",
350
+ # Make functions
351
+ "makedate",
352
+ "makeweekdate",
353
+ "maketime",
354
+ # Other date functions
355
+ "AddMonths",
356
+ "AddYears",
357
+ "yeartodate",
358
+ # Timezone functions
359
+ "timezone",
360
+ "GMT",
361
+ "UTC",
362
+ "daylightsaving",
363
+ "converttolocaltime",
364
+ # Set time functions
365
+ "setdateyear",
366
+ "setdateyearmonth",
367
+ # In... functions
368
+ "inyear",
369
+ "inyeartodate",
370
+ "inquarter",
371
+ "inquartertodate",
372
+ "inmonth",
373
+ "inmonthtodate",
374
+ "inmonths",
375
+ "inmonthstodate",
376
+ "inweek",
377
+ "inweektodate",
378
+ "inlunarweek",
379
+ "inlunarweektodate",
380
+ "inday",
381
+ "indaytotime",
382
+ # Start ... end functions
383
+ "yearstart",
384
+ "yearend",
385
+ "yearname",
386
+ "quarterstart",
387
+ "quarterend",
388
+ "quartername",
389
+ "monthstart",
390
+ "monthend",
391
+ "monthname",
392
+ "monthsstart",
393
+ "monthsend",
394
+ "monthsname",
395
+ "weekstart",
396
+ "weekend",
397
+ "weekname",
398
+ "lunarweekstart",
399
+ "lunarweekend",
400
+ "lunarweekname",
401
+ "daystart",
402
+ "dayend",
403
+ "dayname",
404
+ # Day numbering functions
405
+ "age",
406
+ "networkdays",
407
+ "firstworkdate",
408
+ "lastworkdate",
409
+ "daynumberofyear",
410
+ "daynumberofquarter",
411
+ # Exponential and logarithmic
412
+ "exp",
413
+ "log",
414
+ "log10",
415
+ "pow",
416
+ "sqr",
417
+ "sqrt",
418
+ # Count functions
419
+ "GetAlternativeCount",
420
+ "GetExcludedCount",
421
+ "GetNotSelectedCount",
422
+ "GetPossibleCount",
423
+ "GetSelectedCount",
424
+ # Field and selection functions
425
+ "GetCurrentSelections",
426
+ "GetFieldSelections",
427
+ "GetObjectDimension",
428
+ "GetObjectField",
429
+ "GetObjectMeasure",
430
+ # File functions
431
+ "Attribute",
432
+ "ConnectString",
433
+ "FileBaseName",
434
+ "FileDir",
435
+ "FileExtension",
436
+ "FileName",
437
+ "FilePath",
438
+ "FileSize",
439
+ "FileTime",
440
+ "GetFolderPath",
441
+ "QvdCreateTime",
442
+ "QvdFieldName",
443
+ "QvdNoOfFields",
444
+ "QvdNoOfRecords",
445
+ "QvdTableName",
446
+ # Financial functions
447
+ "FV",
448
+ "nPer",
449
+ "Pmt",
450
+ "PV",
451
+ "Rate",
452
+ # Formatting functions
453
+ "ApplyCodepage",
454
+ "Date",
455
+ "Dual",
456
+ "Interval",
457
+ "Money",
458
+ "Num",
459
+ "Time",
460
+ "Timestamp",
461
+ # General numeric functions
462
+ "bitcount",
463
+ "div",
464
+ "fabs",
465
+ "fact",
466
+ "frac",
467
+ "sign",
468
+ # Combination and permutation functions
469
+ "combin",
470
+ "permut",
471
+ # Modulo functions
472
+ "fmod",
473
+ "mod",
474
+ # Parity functions
475
+ "even",
476
+ "odd",
477
+ # Rounding functions
478
+ "ceil",
479
+ "floor",
480
+ "round",
481
+ # Geospatial functions
482
+ "GeoAggrGeometry",
483
+ "GeoBoundingBox",
484
+ "GeoCountVertex",
485
+ "GeoInvProjectGeometry",
486
+ "GeoProjectGeometry",
487
+ "GeoReduceGeometry",
488
+ "GeoGetBoundingBox",
489
+ "GeoGetPolygonCenter",
490
+ "GeoMakePoint",
491
+ "GeoProject",
492
+ # Interpretation functions
493
+ "Date#",
494
+ "Interval#",
495
+ "Money#",
496
+ "Num#",
497
+ "Text",
498
+ "Time#",
499
+ "Timestamp#",
500
+ # Field functions
501
+ "FieldIndex",
502
+ "FieldValue",
503
+ "FieldValueCount",
504
+ # Inter-record functions in the data load script
505
+ "Exists",
506
+ "LookUp",
507
+ "Peek",
508
+ "Previous",
509
+ # Logical functions
510
+ "IsNum",
511
+ "IsText",
512
+ # Mapping functions
513
+ "ApplyMap",
514
+ "MapSubstring",
515
+ # Mathematical functions
516
+ "e",
517
+ "false",
518
+ "pi",
519
+ "rand",
520
+ "true",
521
+ # NULL functions
522
+ "EmptyIsNull",
523
+ "IsNull",
524
+ "Null",
525
+ # Basic range functions
526
+ "RangeMax",
527
+ "RangeMaxString",
528
+ "RangeMin",
529
+ "RangeMinString",
530
+ "RangeMode",
531
+ "RangeOnly",
532
+ "RangeSum",
533
+ # Counter range functions
534
+ "RangeCount",
535
+ "RangeMissingCount",
536
+ "RangeNullCount",
537
+ "RangeNumericCount",
538
+ "RangeTextCount",
539
+ # Statistical range functions
540
+ "RangeAvg",
541
+ "RangeCorrel",
542
+ "RangeFractile",
543
+ "RangeKurtosis",
544
+ "RangeSkew",
545
+ "RangeStdev",
546
+ # Financial range functions
547
+ "RangeIRR",
548
+ "RangeNPV",
549
+ "RangeXIRR",
550
+ "RangeXNPV",
551
+ # Statistical distribution
552
+ "CHIDIST",
553
+ "CHIINV",
554
+ "NORMDIST",
555
+ "NORMINV",
556
+ "TDIST",
557
+ "TINV",
558
+ "FDIST",
559
+ "FINV",
560
+ # String functions
561
+ "Capitalize",
562
+ "Chr",
563
+ "Evaluate",
564
+ "FindOneOf",
565
+ "Hash128",
566
+ "Hash160",
567
+ "Hash256",
568
+ "Index",
569
+ "KeepChar",
570
+ "Left",
571
+ "Len",
572
+ "LevenshteinDist",
573
+ "Lower",
574
+ "LTrim",
575
+ "Mid",
576
+ "Ord",
577
+ "PurgeChar",
578
+ "Repeat",
579
+ "Replace",
580
+ "Right",
581
+ "RTrim",
582
+ "SubField",
583
+ "SubStringCount",
584
+ "TextBetween",
585
+ "Trim",
586
+ "Upper",
587
+ # System functions
588
+ "Author",
589
+ "ClientPlatform",
590
+ "ComputerName",
591
+ "DocumentName",
592
+ "DocumentPath",
593
+ "DocumentTitle",
594
+ "EngineVersion",
595
+ "GetCollationLocale",
596
+ "GetObjectField",
597
+ "GetRegistryString",
598
+ "IsPartialReload",
599
+ "OSUser",
600
+ "ProductVersion",
601
+ "ReloadTime",
602
+ "StateName",
603
+ # Table functions
604
+ "FieldName",
605
+ "FieldNumber",
606
+ "NoOfFields",
607
+ "NoOfRows",
608
+ "NoOfTables",
609
+ "TableName",
610
+ "TableNumber",
611
+ ]
612
+
613
+ # System variables and constants
614
+ # see https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/work-with-variables-in-data-load-editor.htm
615
+ CONSTANT_LIST = [
616
+ # System Variables
617
+ "floppy",
618
+ "cd",
619
+ "include",
620
+ "must_include",
621
+ "hideprefix",
622
+ "hidesuffix",
623
+ "qvpath",
624
+ "qvroot",
625
+ "QvWorkPath",
626
+ "QvWorkRoot",
627
+ "StripComments",
628
+ "Verbatim",
629
+ "OpenUrlTimeout",
630
+ "WinPath",
631
+ "WinRoot",
632
+ "CollationLocale",
633
+ "CreateSearchIndexOnReload",
634
+ # value handling variables
635
+ "NullDisplay",
636
+ "NullInterpret",
637
+ "NullValue",
638
+ "OtherSymbol",
639
+ # Currency formatting
640
+ "MoneyDecimalSep",
641
+ "MoneyFormat",
642
+ "MoneyThousandSep",
643
+ # Number formatting
644
+ "DecimalSep",
645
+ "ThousandSep",
646
+ "NumericalAbbreviation",
647
+ # Time formatting
648
+ "DateFormat",
649
+ "TimeFormat",
650
+ "TimestampFormat",
651
+ "MonthNames",
652
+ "LongMonthNames",
653
+ "DayNames",
654
+ "LongDayNames",
655
+ "FirstWeekDay",
656
+ "BrokenWeeks",
657
+ "ReferenceDay",
658
+ "FirstMonthOfYear",
659
+ # Error variables
660
+ "errormode",
661
+ "scripterror",
662
+ "scripterrorcount",
663
+ "scripterrorlist",
664
+ # Other
665
+ "null",
666
+ ]