Debian Codegraph @

CHANGES

raw
1 Pygments changelog
2 ==================
3
4 Pull request numbers before 2.4.2 are not linked as they refer to the now defunct Bitbucket project.
5
6 Version 2.20.0
7 --------------
8 (released March 29th, 2026)
9
10 - New lexers:
11
12 * Rell (#2914)
13
14 - Updated lexers:
15
16 * archetype: Fix catastrophic backtracking in GUID and ID patterns (#3064)
17 * ASN.1: Recognize minus sign and fix range operator (#3014, #3060)
18 * C++: Add C++26 keywords (#2955), add integer literal suffixes (#2966)
19 * ComponentPascal: Fix ``analyse_text`` (#3028, #3032)
20 * Coq renamed to Rocq (#2883, #2908)
21 * Cython: Various improvements (#2932, #2933)
22 * Debian control: Improve architecture parsing (#3052)
23 * Devicetree: Add support for overlay/fragments (#3021), add bytestring support (#3022), fix catastrophic backtracking (#3057)
24 * Fennel: Various improvements (#2911)
25 * Haskell: Handle escape sequences in character literals (#3069, #1795)
26 * Java: Add module keywords (#2955)
27 * Lean4: Add operators ``]'``, ``]?``, ``]!`` (#2946)
28 * LESS: Support single-line comments (#3005)
29 * LilyPond: Update to 2.25.29 (#2974)
30 * LLVM: Support C-style comments (#3023, #2978)
31 * Lua(u): Fix catastrophic backtracking (#3047)
32 * Macaulay2: Update to 1.25.05 (#2893), 1.25.11 (#2988)
33 * Mathematica: Various improvements (#2957)
34 * meson: Add additional operators (#2919)
35 * MySQL: Update keywords (#2970)
36 * org-Mode: Support both schedule and deadline (#2899)
37 * PHP: Add ``__PROPERTY__`` magic constant (#2924), add reserved keywords (#3002)
38 * PostgreSQL: Add more keywords (#2985)
39 * protobuf: Fix namespace tokenization (#2929)
40 * Python: Add ``t``-string support (#2973, #3009, #3010)
41 * Tablegen: Fix infinite loop (#2972, #2940)
42 * Tera Term macro: Add commands introduced in v5.3 through v5.6 (#2951)
43 * TOML: Support TOML 1.1.0 (#3026, #3027)
44 * Turtle: Allow empty comment lines (#2980)
45 * XML: Added ``.xbrl`` as file ending (#2890, #2891)
46
47 - Drop Python 3.8, and add Python 3.14 as a supported version (#2987, #3012)
48 - Various improvements to ``autopygmentize`` (#2894)
49 - Update ``onedark`` style to support more token types (#2977)
50 - Update ``rtt`` style to support more token types (#2895)
51 - Cache entry points to improve performance (#2979)
52 - Fix ``xterm-256`` color table (#3043)
53 - Fix ``kwargs`` dictionary getting mutated on each call (#3044)
54
55 Version 2.19.2
56 --------------
57 (released June 21st, 2025)
58
59 * Lua: Fix regression introduced in 2.19.0 (#2882, #2839)
60
61 Version 2.19.1
62 --------------
63 (released January 6th, 2025)
64
65 - Updated lexers:
66
67 * Ini: Fix quoted string regression introduced in 2.19.0
68 * Lua: Fix a regression introduced in 2.19.0
69
70 Version 2.19.0
71 --------------
72 (released January 5th, 2025)
73
74 - New lexers:
75
76 * CodeQL (#2819)
77 * Debian Sources (#2788, #2747)
78 * Gleam (#2662)
79 * GoogleSQL (#2820, #2814)
80 * JSON5 (#2734, #1880)
81 * Maple (#2763, #2548)
82 * NumbaIR (#2433)
83 * PDDL (#2799, #2616)
84 * Rego (#2794)
85 * TableGen (#2751)
86 * Vue.js (#2832)
87
88 - Updated lexers:
89
90 * BQN: Various improvements (#2789)
91 * C#: Fix number highlighting (#986, #2727), add ``file`` keyword (#2726, #2805, #2806), add various other keywords (#2745, #2770)
92 * CSS: Add ``revert`` (#2766, #2775)
93 * Debian control: Add ``Change-By`` field (#2757)
94 * Elip: Improve punctuation handling (#2651)
95 * Igor: Add ``int`` (#2801)
96 * Ini: Fix quoted strings with embedded comment characters (#2767, #2720)
97 * Java: Support functions returning types containing a question mark (#2737)
98 * JavaScript: Support private identiiers (#2729, #2671)
99 * LLVM: Add ``splat``, improve floating-point number parsing (#2755)
100 * Lua: Improve variable detection, add built-in functions (#2829)
101 * Macaulay2: Update to 1.24.11 (#2800)
102 * PostgreSQL: Add more ``EXPLAIN`` keywords (#2785), handle ``/`` (#2774)
103 * S-Lexer: Fix keywords (#2082, #2750)
104 * TransactSQL: Fix single-line comments (#2717)
105 * Turtle: Fix triple quoted strings (#2744, #2758)
106 * Typst: Various improvements (#2724)
107 * Various: Add ``^`` as an operator to Matlab, Octave and Scilab (#2798)
108 * Vyper: Add ``staticcall`` and ``extcall`` (#2719)
109
110 * Mark file extensions for ``HTML/XML+Evoque`` as aliases (#2743)
111 * Add a color for ``Operator.Word`` to the ``rrt`` style (#2709)
112 * Fix broken link in the documentation (#2803, #2804)
113 * Drop executable bit where not needed (#2781)
114 * Reduce Mojo priority relative to Python in ``analyze_text`` (#2771, #2772)
115 * Fix documentation builds (#2712)
116 * Match example file names to the lexer's name (#2713, #2715)
117 * Ensure lexer metadata is present (#2714)
118 * Search more directories on macOS for fonts (#2809)
119 * Improve test robustness (#2812)
120
121 Version 2.18.0
122 --------------
123 (released May 4th, 2024)
124
125 - New lexers:
126
127 * Janet (#2557)
128 * Lean 4 (#2618, #2626)
129 * Luau (#2605)
130 * Mojo (#2691, #2515)
131 * org-mode (#2628, #2636)
132 * Promela (#2620)
133 * Soong / ``Android.bp`` (#2659)
134 * Tact (#2571)
135 * TSX
136 * Typst (#2596)
137
138 - Updated lexers:
139
140 * Awk: recognize ternary operator (#2687)
141 * Bash: add ``openrc`` alias (#2599, #2371)
142 * Coq: add keywords, lex more vernacular command arguments, produce
143 fewer tokens on heading comments (#2678)
144 * DNS zone files: Fix comment parsing (#2595)
145 * Hy: Support unicode literals (#1126)
146 * Inform6: Update to Inform 6.42 (#2644)
147 * lean: Fix name handling (#2614)
148 * Logtalk: add ``uninstantiation`` keyword and recognize
149 escape sequences (#2619)
150 * Macaulay2: Update to 1.23 (#2655)
151 * Python: fix highlighting of soft keywords before ``None``/``True``/``False``
152 * reStructuredText: use ``Token.Comment`` for comments instead of
153 ``Comment.Preproc`` (#2598)
154 * Rust: highlight ``:``, ``::`` and ``->`` as ``Punctuation``
155 and whitespace as ``Whitespace``, instead of ``Text``
156 in both cases (#2631)
157 * Spice: Add keywords (#2621)
158 * SQL Explain: allow negative numbers (#2610)
159 * Swift: Support multiline strings (#2681)
160 * ThingsDB: add constants and new functions; support template
161 strings (#2624)
162 * UL4: support nested ``<?doc?>`` and ``<?note?>`` tags (#2597)
163 * VHDL: support multi-line comments of VHDL-2008 (#2622)
164 * Wikitext: Remove ``kk-*`` in ``variant_langs`` (#2647)
165 * Xtend: Add ``val`` and ``var`` (#2602)
166
167 - New styles:
168
169 * Coffee (#2609)
170
171 - Make background colors in the image formatter work with Pillow 10.0 (#2623)
172 - Require Python 3.8. As a result, the ``importlib-metadata`` package
173 is no longer needed for fast plugin discovery on Python 3.7.
174 The ``plugins`` extra (used as, e.g., ``pip install pygments[plugins]``)
175 is kept for backwards compatibility but now has no effect. (#2601)
176 - Require the ``url`` attribute for lexers inside Pygments, add
177 it to many lexers (#2588)
178 - Replace Pyflakes linter with Ruff (#2592)
179 - Add macOS CI (#2594)
180 - Built-in lexers now declare the version of Pygments in which they were
181 added in a required ``version_added`` lexer attribute, instead of a
182 ``.. versionadded::`` directive in the docstring (#2589, #2634)
183 - The ``url`` attribute is now required for built-in lexers and
184 has been added to all existing lexers (#2588)
185 - The RTF formatter supports line number and line highlighting now (#1217, #2654)
186 - Add ``\sa0`` keyword in the RTF formatter (#1111, #2607)
187 - Register ``pycon`` as an alias for the Python console lexer (#2697)
188 - Add MIME-Type for ``DesktopLexer`` (#2613)
189 - Fix native style to meet WCAG AA guidelines (#2600)
190 - Fix typo in documentation (#2672)
191 - Use format strings consistently (#2661)
192 - Add ``__class_getitem__`` to ``Formatter`` to improve typing support (#2665)
193
194 Version 2.17.2
195 --------------
196 (released November 21, 2023)
197
198 - Fix a packaging issue on macOS (#2593)
199
200 Version 2.17.1
201 --------------
202 (released November 19, 2023)
203
204 - Updated lexers:
205
206 * TOML: Fix bug making lexing of single-quoted strings too eager
207
208 Version 2.17.0
209 --------------
210 (released November 18, 2023)
211
212 - New lexers:
213
214 * JSX (#2524, #709)
215 * Kusto (#2552)
216 * ldaprc (#2532)
217 * LDIF (#2489)
218 * PRQL (#2507, #2523, #2559)
219 * Visual Prolog and Visual Prolog Grammar (#2480)
220 * Vyper (#2531, #2579)
221
222 - Updated lexers:
223
224 * Cypher: fix comment matching, add missing keywords (#2504)
225 * Fortran: add ``elseif`` keyword (#2528)
226 * Lean: make it available as ``lean3``, in preparation for
227 a possible switch to ``lean`` highlighting as Lean 4 (#2546)
228 * JSON: add MIME types and file extensions for several line-delimited
229 JSON formats (#2490)
230 * Nix: many improvements (#2551, #1800)
231 * OCaml: Add ``and`` keyword, remove ``value`` from keywords (#2521)
232 * Python: add ``starlark`` and ``bazel`` aliases (#2517, #2516)
233 * Snowball: Treat ``len`` like ``size`` (#2508)
234 * Spice: add ``panic`` keyword and ``->`` operator (#2510)
235 * squid.conf: fix catastrophic backtracking (#2583)
236 * TOML: rewritten, with many fixes (#2576)
237 * Turtle: support blank nodes (#2581)
238 * Wikitext: fix erroneous highlighting of LanguageConverter markup
239 (#2493), add missing variant languages (#2494)
240 * CMake: support ``[=[ bracketed arguments ]=]`` (#2549)
241
242 - Fix ctags support and tests (#2487)
243 - Include ``Lexer.add_filter`` in the documentation (#2519)
244 - Add a ``Lean3Lexer`` alias (#2546)
245 - The ``pygments.styles`` module contains a new ``STYLES`` variable
246 with a dictionary of built-in styles. The old ``STYLE_MAP`` variable,
247 which uses a different format, is kept for backwards compatibility.
248 - On Windows, add a new installation extra (``windows-terminal``) which pulls in
249 dependencies for colored console output. See :doc:`cmdline` for more details.
250 (#2505)
251 - Support more file types in ``autopygmentize`` script (#2513)
252 - Change color of numbers in ``rrt`` style (#2526)
253 - Fix error when trying to look up plugin formatters by file extension
254 of the output format (#2563)
255 - Use Hatchling as a build backend instead of setuptools.
256 This change is transparent to most users. Distribution packagers
257 who build without build isolation need to add hatchling as a build
258 dependency and remove setuptools. People downloading source distributions
259 and wheels from PyPI directly should note that they now have ``pygments``
260 in their file names instead of ``Pygments``. (#2573)
261 - Improve the test framework to also check for lost tokens when processing the
262 snippets and example files (#2582.)
263 - Improve the *Dracula* style definition to make it easier to maintain (#2575)
264
265 Version 2.16.1
266 --------------
267 (released August 6th, 2023)
268
269 - Fix ``native`` style missing from style list (#2484)
270
271 Version 2.16.0
272 --------------
273 (released August 6th, 2023)
274
275 - New lexers:
276
277 * ASN.1 (#2462)
278 * Blueprint (#2434)
279 * BQN (#2472)
280 * DNS zone files (#2464)
281 * GraphQL (#2428)
282 * Linux desktop files (following the specification of the
283 Freedesktop group, formerly known as XDG) (#2470)
284 * NVIDIA PTX (#2432)
285 * OpenSCAD (#2449)
286 * systemd (#2470)
287 * TLS presentation language (#2455)
288 * Verifpal (#2430)
289 * YARA (#2453)
290
291 - Updated lexers:
292
293 * ASC: Add ``application/pem-certificate-chain`` mimetype (#2471)
294 * C/C++: Refine keyword lists (#2421, #2422)
295 * Carbon: Fix long processing times on invalid input, fix number
296 lexing (#2454, #2456)
297 * Elpi: Handle quotations (#2419)
298 * Go: Support additional built-ins (#2481)
299 * HTTP: Support empty headers (#2461), support more general methods (#2460),
300 also recognize responses in ``analyse_text`` implementation (#2460), and
301 highlight URL encoded data (#2465, #1620)
302 * Igor Pro: Update to Igor Pro 9 (#2482)
303 * lean: Recognize expressions nested within attributes (#1817)
304 * Macaulay2: Update builtins (#2457)
305 * Markdown: Allow extra characters after language name
306 in code blocks (#2437)
307 * NestedText: Update to version 3 (#2459)
308 * scdoc: Improve language guessing implementation (#2402)
309 * Spice: Update to latest version (#2476)
310 * Transact SQL: Add Pre-sorted Group keyword (#2417)
311 * Uxntal: Update for current runes (#2424)
312 * Wikitext: Fix templates in wiki links; fix a language converter false
313 positive; add bold italic markup (#2447)
314
315 - Add ``Generic.EmphStrong`` token for bold italic markup (#2444)
316 - Add Lightbulb style (#2474)
317 - Improve contrast in Monokai style (#2448)
318 - Add documentation how to create terminal code highlighting commands (#2131, #2425)
319 - Add support for loading TrueType fonts to the ``ImageFormatter`` (#1960)
320
321 Version 2.15.1
322 --------------
323 (released April 18th, 2023)
324
325 - Updated lexers:
326
327 * Java properties: Fix catastrophic backtracking (#2356, #2404)
328
329 - Fix Python console traceback lexing being too strict
330 and sometimes reordering output (#2407, #2410, #2412)
331
332
333 Version 2.15.0
334 --------------
335 (released April 10th, 2023)
336
337 - Added lexers:
338
339 * Carbon (#2362, #2365, #2366, #2367, #2368, #2369, #2370)
340 * Dax (#2335, #2345)
341 * MediaWiki Wikitext (#2373, #827)
342 * PostgreSQL Explain (#2398)
343 * WGSL (WebGPU Shading Language) (#2386)
344 * X++ (#2339)
345
346 - Updated lexers:
347
348 * AMDGPU: Add support for ``scratch_`` instructions, the ``attr*.*`` argument,
349 as well as the ``off`` modifier (#2327).
350 * APDL: Miscellaneous improvements (#2314)
351 * bash/tcsh:
352
353 - Move ``break`` to keywords (#2377)
354 - Improve bash math expansion lexing (#2255, #2353)
355
356 * Chapel: Support attributes (#2376)
357 * CMake: Implement bracket style comments (#2338, #2354)
358 * CSS: Improve lexing of numbers inside function calls (#2382, #2383)
359 * diff: Support normal diff syntax, as opposed to unified diff syntax (#2321)
360 * GLSL, HLSL:
361
362 - Support line continuations in preprocessor code (#2350)
363 - Improve preprocessor directive handling (#2357)
364
365 * LilyPond: minor update of builtins
366 * PHP: support attributes (#2055, #2347, #2360), fix anonymous classes without
367 parameters (#2359), improve lexing of variable variable syntax (#2358)
368 * Python:
369
370 - Add missing builtins (#2334)
371 - Fix inconsistent lexing of ``None`` (#2406)
372
373 * Rebol/Red: Don't require script headers (#2348, #2349)
374 * Spice: Update keywords (#2336)
375 * SQL+Jinja (``analyse_text`` method): Fix catastrophic backtracking (#2355)
376 * Terraform: Add ``hcl`` alias (#2375)
377
378 - Declare support for Python 3.11 and drop support for Python 3.6 (#2324).
379 - Update ``native`` style to improve contrast (#2325).
380 - Update `github-dark`` style to match latest Primer style (#2401)
381 - Revert a change that made guessing lexers based on file names slower
382 on Python 3.10 and older (#2328).
383 - Fix some places where a locale-dependent encoding could unintentionally
384 be used instead of UTF-8 (#2326).
385 - Fix Python traceback handling (#2226, #2329).
386 - Groff formatter: sort color definitions for reproducibility (#2343)
387 - Move project metadata to ``pyproject.toml``, remove ``setup.py``
388 and ``setup.cfg`` (#2342)
389
390 - The top-level ``Makefile`` has been removed. Instead, all shortcuts
391 for developing are now defined and run through tox. The ``doc`` folder
392 still contains a ``Makefile`` as an alternative to ``tox -e doc``.
393
394
395 Version 2.14.0
396 --------------
397 (released January 1st, 2023)
398
399 - Added lexers:
400
401 * Arturo (#2259)
402 * GAP session (#2211)
403 * Fift (#2249)
404 * func (#2232)
405 * Jsonnet (#2239)
406 * Minecraft schema (#2276)
407 * MIPS (#2228)
408 * Phix (#2222)
409 * Portugol (#2300)
410 * TL-b (#2247)
411 * World of Warcraft TOC format (#2244, #2245)
412 * Wren (#2271)
413
414 - Updated lexers:
415
416 * Abap: Update keywords (#2281)
417 * Alloy: Update for Alloy 6 (#1963)
418 * C family (C, C++ and many others):
419
420 - Fix an issue where a chunk would be wrongly recognized as a function
421 definition due to braces in comments (#2210)
422 - Improve parantheses handling for function definitions (#2207, #2208)
423
424 * C#: Fix number and operator recognition (#2256, #2257)
425 * CSound: Updated builtins (#2268)
426 * F#: Add ``.fsx`` file extension (#2282)
427 * gas (GNU assembler): recognize braces as punctuation (#2230)
428 * HTTP: Add `CONNECT` keyword (#2242)
429 * Inform 6: Fix lexing of properties and doubles (#2214)
430 * INI: Allow comments that are not their own line (#2217, #2161)
431 * Java properties: Fix issue with whitespace-delimited keys, support
432 comments starting with `!` and escapes, no longer support undocumented
433 `;` and `//` comments (#2241)
434 * LilyPond: Improve heuristics, add ``\maxima`` duration (#2283)
435 * LLVM: Add opaque pointer type (#2269)
436 * Macaulay2: Update keywords (#2305)
437 * Minecraft-related lexers (SNB and Minecraft function) moved to
438 ``pygments.lexers.minecraft`` (#2276)
439 * Nim: General improvements (#1970)
440 * Nix: Fix single quotes inside indented strings (#2289)
441 * Objective J: Fix catastrophic backtracking (#2225)
442 * NASM: Add support for SSE/AVX/AVX-512 registers as well as 'rel'
443 and 'abs' address operators (#2212)
444 * Powershell:
445
446 - Add ``local:`` keyword (#2254)
447 - Allow continuations without markers (#2262, #2263)
448
449 * Solidity: Add boolean operators (#2292)
450 * Spice: Add ``enum`` keyword and fix a bug regarding binary,
451 hexadecimal and octal number tokens (#2227)
452 * YAML: Accept colons in key names (#2277)
453
454 - Fix `make mapfiles` when Pygments is not installed in editable mode
455 (#2223)
456
457 - Support more filetypes and compression types in `autopygmentize` (#2219)
458 - Merge consecutive tokens in Autohotkey, Clay (#2248)
459 - Add ``.nasm`` as a recognized file type for NASM (#2280)
460 - Add ``*Spec.hs`` as a recognized file type for ``HSpec`` (#2308)
461 - Add ``*.pyi`` (for typing stub files) as a recognized file type for
462 Python (#2231)
463 - The HTML lexer no longer emits empty spans for whitespace (#2304)
464 - Fix ``IRCFormatter`` inserting linenumbers incorrectly (#2270)
465
466 Version 2.13.0
467 --------------
468 (released August 15th, 2022)
469
470 - Added lexers:
471
472 * COMAL-80 (#2180)
473 * JMESPath (#2174, #2175, #2179, #2182)
474 * Sql+Jinja (#2148)
475
476 - Updated lexers:
477
478 * Ada: support Ada 2022 (#2121); disable recognition of namespaces
479 because it disturbs lexing of aspects (#2125)
480 * Agda: allow straight quotes in module names (#2163)
481 * C family (C, C++ and many others): allow comments between
482 elements of function headers, e.g. between the arguments and
483 the opening brace for the body (#1891)
484 * C++: Resolve several cases of ``Error`` tokens (#2207, #2208)
485 * Coq: Add some common keywords, improve recognition of ``Set``
486 and qualified identifiers (#2158)
487 * F*: Allow C-style comments anywhere in a line
488 * Fortran: Fix catastrophic backtracking with backslashes in strings
489 (#2194)
490 * Go: add support for generics (#2167)
491 * Inform: Update for version 6.40 (#2190)
492 * Isabelle: recognize cartouches (#2089)
493 * Java: support multiline strings aka. text blocks (#2132)
494 * Kotlin: Add ``value`` modifier (#2142)
495 * LilyPond: Add some missing builtins
496 * Macaulay2: Update builtins (#2139)
497 * Matlab session: fix traceback when a line continuation ellipsis
498 appears in the output (#2166)
499 * .NET: Add aliases for LibreOffice Basic, OpenOfficeBasic and
500 StarOffice Basic (#2170)
501 * Nim: Use ``Name.Builtin`` instead of ``Keyword.Type`` (#2136)
502 * PHP: fix `\"$var\"` inside strings (#2105)
503 * Python: only recognize ``\N``, ``\u`` and ``\U`` escape sequences
504 in string literals, but not in bytes literals where they are
505 not supported (#2204)
506 * Tcl: support ``${name}`` variables (#2145)
507 * Terraform: Accept leading whitespace for `<<` heredoc
508 delimiters (#2162)
509 * Teraterm: Various improvements (#2165)
510 * Spice: add support for the recently added features including more
511 builtin functions and bin, oct, hex number formats (#2206)
512
513 - Added styles:
514
515 * GitHub dark (#2192)
516 * StarOffice (#2168)
517 * Nord (`nord` and `nord-darker`; #2189, #1799, #1678)
518
519 - Pygments now tries to use the ``importlib.metadata`` module to
520 discover plugins instead of the slower ``pkg_resources`` (#2155). In
521 particular, this largely speeds up the ``pygmentize`` script when
522 the lexer is not specified.
523
524 ``importlib.metadata`` is only available in the Python standard
525 library since Python 3.8. For older versions, there exists an
526 ``importlib_metadata`` backport on PyPI. For this reason, Pygments
527 now defines a packaging extra ``plugins``, which adds a requirement
528 on ``importlib_metadata`` if the Python version is older than
529 3.8. Thus, in order to install Pygments with optimal plugin
530 support even for old Python versions, you should do::
531
532 pip install pygments[plugins]
533
534 Pygments still falls back on ``pkg_resources`` if neither
535 ``importlib.metadata`` nor ``importlib_metadata`` is found, but it
536 will be slower.
537
538 - Silently ignore ``BrokenPipeError`` in the command-line interface
539 (#2193).
540 - The ``HtmlFormatter`` now uses the ``linespans`` attribute for
541 ``anchorlinenos`` if the ``lineanchors`` attribute is unset (#2026).
542 - The ``highlight``, ``lex`` and ``format`` functions no longer
543 wrongly report "argument must be a lexer/formatter instance, not a
544 class" in some cases where this is not the actual problem (#2123).
545 - Fix warnings in doc build (#2124).
546 - The ``codetagify`` filter now recognizes ``FIXME`` tags by default (#2150).
547 - The ``pygmentize`` command now recognizes if the ``COLORTERM``
548 environment variable is set to a value indicating that true-color
549 support is available. In that case, it uses the ``TerminalTrueColorFormatter``
550 by default (#2160)
551 - Remove redundant caches for filename patterns (#2153)
552 - Use new non-deprecated Pillow API for text bounding box in ``ImageFormatter``
553 (#2198)
554 - Remove ``default_style`` (#930, #2183)
555 - Stop treating ``DeprecationWarnings`` as errors in the unit tests (#2196)
556
557 Version 2.12.0
558 --------------
559 (released April 24th, 2022)
560
561 - Added lexers:
562
563 * Berry (#2070)
564 * Cplint (#2045)
565 * Macaulay2 (#1791)
566 * MCFunction (#2107)
567 * Minecraft (#2107)
568 * Qlik (#1925)
569 * ``UnixConfigLexer`` for "colon-separated" config files, like ``/etc/passwd`` (#2112)
570 * Uxntal (#2086)
571 * K and Q (#2073)
572
573 - Updated lexers:
574
575 * Agda: Update keyword list (#2017)
576 * C family: Fix identifiers after ``case`` statements (#2084)
577 * Clojure: Highlight ratios (#2042)
578 * Csound: Update to 6.17 (#2064)
579 * CSS: Update the list of properties (#2113)
580 * Elpi:
581
582 - Fix catastrophic backtracking (#2053, #2061)
583 - Fix handling of ``->`` (#2028)
584
585 * Futhark: Add missing tokens (#2118)
586 * Gherkin: Add ``But`` (#2046)
587 * Inform6: Update to 6.36 (#2050)
588 * Jinja2: add ``.xxx.j2`` and ``.xxx.jinja2`` to relevant lexers
589 (for ``xxx`` = ``html``, ``xml``, etc.) (#2103)
590 * JSON: Support C comments in JSON (#2049). Note: This doesn't mean the JSON parser now supports JSONC or JSON5 proper, just that it doesn't error out when seeing a ``/* */`` or ``//`` style comment. If you need proper comment handling, consider using the ``JavaScript`` lexer.
591 * LilyPond:
592
593 - Fix incorrect lexing of names containing a built-in (#2071)
594 - Fix properties containing dashes (#2099)
595
596 * PHP: Update builtin function and keyword list (#2054, #2056)
597 * Python: highlight ``EncodingWarning`` (#2106)
598 * Savi: fix highlighting for underscore/private identifiers,
599 add string interpolation (#2102); fix nested type name highlighting
600 (#2110)
601 * Scheme: Various improvements (#2060)
602 * Spice: Update the keyword list, add new types (#2063, #2067)
603 * Terraform:
604
605 - Support non-idiomatic comments (#2065, #2066)
606 - Fix class name lexing (#2097)
607
608 - Add ``plugins`` argument to ``get_all_lexers()``.
609 - Bump minimal Python version to 3.6 (#2059)
610 - Fix multiple lexers marking whitespace as ``Text`` (#2025)
611 - Remove various redundant uses of ``re.UNICODE`` (#2058)
612 - Associate ``.resource`` with the Robot framework (#2047)
613 - Associate ``.cljc`` with Clojure (#2043)
614 - Associate ``.tpp`` with C++ (#2031)
615 - Remove traces of Python 2 from the documentation (#2039)
616 - The ``native`` style was updated to meet the WCAG AAA contrast guidelines (#2038)
617 - Fix various typos (#2030)
618 - Fix ``Groff`` formatter not inheriting token styles correctly (#2024)
619 - Various improvements to the CI (#2036)
620 - The Ada lexer has been moved to a separate file (#2117)
621 - When ``linenos=table`` is used, the ``<table>`` itself is now wrapped with a ``<div class="highlight">`` tag instead of placing it inside the ``<td class="code">`` cell (#632.) With this change, the output matches the documented behavior.
622
623 .. note::
624
625 If you have subclassed ``HtmlFormatter.wrap``, you may have to adjust the logic.
626
627
628 Version 2.11.2
629 --------------
630 (released January 6th, 2022)
631
632 - Updated lexers:
633
634 * C-family: Fix incorrect handling of labels (#2022, #1996, #1182)
635 * Java: Fixed an issue with ``record`` keywords result in ``Error`` tokens in some cases (#2016, #2018)
636
637 - Fix links to line numbers not working correctly (#2014)
638 - Remove ``underline`` from ``Whitespace`` style in the ``Tango`` theme (#2020)
639 - Fix ``IRC`` and ``Terminal256`` formatters not backtracking correctly for custom token types, resulting in some unstyled tokens (#1986)
640
641
642 Version 2.11.1
643 --------------
644 (released December 31st, 2021)
645
646 - Updated lexers:
647
648 * C-family: Handle return types with multiple tokens (e.g. ``unsigned int``) (#2008)
649 * JSON: Fix a regression which caused whitespace before ``:`` to result in ``Error`` tokens (#2010)
650 * SPICE: Various improvements (#2009)
651
652
653 Version 2.11.0
654 --------------
655 (released December 30th, 2021)
656
657 - Added lexers:
658
659 * BDD (#1803)
660 * Elpi (#1894)
661 * LilyPond (#1845, #1968, #1971, #2001). This comes with a custom style as well.
662 * Maxima (#1885)
663 * Rita (#1541, #2003)
664 * Savi (#1863)
665 * Sed (#1935)
666 * Sophia contracts (#1974)
667 * Spice (#1980)
668 * ``.SRCINFO`` (#1951)
669
670 - Updated lexers:
671
672 * ABNF: Allow one-character rules (#1804)
673 * Assembly: Fix incorrect token endings (#1895, #1961)
674 * Bibtex: Distinguish between ``comment`` and ``commentary`` (#1899, #1806)
675 * C family: Support unicode identifiers (#1848)
676 * CDDL: Fix slow lexing speed (#1959)
677 * Debian control: Add missing fields (#1946)
678 * Devicetree: Recognize hexadecimal addresses for nodes (#1949)
679 * GDScript: Add ``void`` data type (#1948)
680 * GSQL
681
682 - Fix comment handling (#2002)
683 - Fix catastrophic backtracking (#2006)
684
685 * HTML, XML: Improve comment handling (#1896)
686 * Java: Add ``yield`` (#1941) and sealed classes/record (#1902)
687 * Makefiles (#1860, #1898)
688 * objdump-nasm: Improve handling of ``--no-show-raw-insn`` dumps (#1981)
689 * Prolog: Support escaped ``\`` inside quoted strings (#1479)
690 * Python:
691
692 - Support ``~`` in tracebacks (#2004)
693 - Support the pattern matching keywords (#1797, #1994)
694
695 * RobotFramework: Improve empty brace handling (#1921, #1922)
696 * Terraform
697
698 - Add the 'set' type (#1909)
699 - Support heredocs (#1909)
700
701 - Added styles:
702
703 * Dracula (#1796)
704 * Friendly Grayscale (#1040, #1273)
705 * LilyPond (#1845) -- to be used for the ``LilyPond`` language.
706 * One-Dark (#1924, #1979)
707
708 .. note::
709
710 All of the new styles unfortunately do not conform to WCAG recommendations.
711
712 - There is new infrastructure in place to improve style accessibility. The default style has been updated to conform to WCAG recommendations. All styles are now checked for sufficient contrast by default to prevent regressions. (#1919, #1937, #1938, #1940)
713 - Clean up unused imports (#1887)
714 - Fix multiple lexers producing repeated single-character tokens
715 - Fix multiple lexers marking whitespace as ``Text`` (#1237, #1905, #1908, #1914, #1911, #1923, #1939, #1957, #1978)
716 - Remove duplicated assignments in the Paraiso style (#1934)
717 - ``pygmentize`` supports JSON output for the various list functions now, making it easier to consume them from scripts. (#1437, #1890)
718 - Use the ``shell`` lexer for ``kshrc`` files (#1947)
719 - Use the ``ruby`` lexer for ``Vagrantfile`` files (#1936)
720 - Use the C lexer for ``.xbm`` and ``.xpm`` files (#1802)
721 - Add a ``groff`` formatter (#1873)
722 - Update documentation (#1928)
723 - Line anchors now link to themselves (#1973)
724 - Add official support for Python 3.10 (#1917)
725 - Fix several missing colors in dark styles: Gruvbox dark, Monokai, Rrt, Sas, Strata dark (#1955)
726 - Associate more file types with ``man`` pages
727 - The ``HtmlFormatter`` can now emit tooltips for each token to ease debugging of lexers (#1822)
728 - Add ``f90`` as an alias for ``fortran`` (#2000)
729
730
731 Version 2.10.0
732 --------------
733 (released August 15th, 2021)
734
735 - Added lexers:
736
737 * ASC armored files (#1807)
738 * GSQL (#1809, #1866)
739 * Javascript REPL (#1825)
740 * procfile (#1808)
741 * Smithy (#1878, #1879)
742
743 - Updated lexers:
744
745 * C-family: Fix preprocessor token issues (#1830)
746 * C# (#1573, #1869)
747 * CSound (#1837)
748 * Fennel (#1862)
749 * JavaScript (#1741, #1814)
750 * LLVM (#1824)
751 * Python (#1852)
752 * Rust
753
754 - Fix lexing of "break" and "continue" (#1843)
755 - Improve attribute handling (#1813)
756
757 * Scala: Add support for the ``\`` operator (#1857)
758 * Swift (#1767, #1842)
759 * Tcl: Allow ``,`` and ``@`` in strings (#1834, #1742)
760 * TOML (#1870, #1872)
761
762 - Fix assert statements in TNT lexer.
763 - Token types across all lexers have been unified (using the most common token
764 type name) (#1816, #1819)
765 - Improve Jasmin min score analysis (#1619)
766 - Add new alias for Go files (#1827)
767 - Fix multi-line console highlighting (#1833)
768 - Add a new trivial lexer which outputs everything as `Text.Generic.Output` (#1835, #1836)
769 - Use the ``.ini`` lexer for ``systemd`` files (#1849)
770 - Fix a ``FutureWarning`` related to ``words()`` (#1854)
771 - ``pwsh`` is now recognized as an alias for PowerShell (#1876)
772
773
774 Version 2.9.0
775 -------------
776 (released May 3rd, 2021)
777
778 - Added lexers:
779
780 * APDL, gcode (#1714)
781 * Kuin (#1300)
782 * NestedText (#1578)
783 * OMG IDL (#1595)
784 * TEAL (#1671)
785 * ThingsDB (#1295)
786 * WebAssembly (#1416, #1564)
787
788 - Updated lexers:
789
790 * AMDGPU (#1717, #1775)
791 * APL (#1747)
792 * C/C++: Improve namespace handling (#1722, #1561, #1719, #1746)
793 * Chapel (#1743)
794 * Coq (#1721)
795 * Cython (#853)
796 * DeviceTree (#1755)
797 * Groovy (#1765)
798 * Julia (#1715)
799 * Octave: Allow multiline and block-percent comments (#1726)
800 * PowerShell: Improve lexing of ``:`` (#1682, #1758)
801 * PromQL (#1783)
802 * Python: Improve float parsing (#1768, #1740)
803 * Rust (#1061)
804 * Scala: Rewrite to support Scala3 (#1694, #1035, #1121)
805 * Terraform: Support 0.14 syntax (#1756)
806 * Velocity: Detect multi-line patterns (#1776)
807
808 - Add Pango formatter (#1727)
809 - Autopygmentize uses ``file`` first instead of ``pygments -N`` (#1786)
810 - Fix links (#1716)
811 - Fix issue with LaTeX formatter and ``minted`` (#1734, #1735, #1736, #1737)
812 - Improve alias order (#1780)
813 - Improve line number colors (#1779, #1778)
814 - Fix CTag related issue (#1724)
815 - Recognize ``.leex`` as Elixir templates
816 - Fix incorrect variable being accessed (#1748)
817
818 - Updated `filename` handling in HTML formatter if `linenos='table'` (#1757)
819
820 * Previously the filename would be emitted within the `<td>` holding the
821 code, but outside the `<pre>`. This would invariably break the alignment
822 with line numbers.
823 * Now if `filename` is specified, a separate `<tr>` is emitted before the
824 table content which contains a single `<th>` with `colspan=2` so it
825 spans both the line number and code columns. The filename is still
826 within `<span class="filename">...</span>` so any existing styles
827 should still apply, although the CSS path may need to change.
828 * For an example of the new output format see
829 `table_cls_step_1_start_1_special_0_noanchor_filename.html`
830 in the `tests/html_linenos_expected_output/` directory.
831 * For more details and discussion see the issue
832 https://github.com/pygments/pygments/issues/1757
833
834 - Added styles:
835
836 * Gruvbox light+dark (#1763)
837
838
839 Version 2.8.0
840 -------------
841 (released February 14, 2021)
842
843 - Added lexers:
844
845 * AMDGPU (#1626)
846 * CDDL (#1379, #1239)
847 * Futhark (#1691)
848 * Graphviz/DOT (#1657, #731)
849
850 - Updated lexers:
851
852 * AutoIt: Support single quoted strings (#1667, #1663)
853 * C/C++ & related: Fix mishandling ``*/`` (#1695)
854 * Cocoa: Add builtin types (#1703)
855 * Console (#1672)
856 * Eiffel: Fix performance issues (#1658)
857 * Fortran: Improve combined keyword detection (#1677, #1188)
858 * J: Fix operator ``?`` lexing (#1700, #1149)
859 * JavaScript/TypeScript: Fix escapes in backtick strings (#1679, #1686)
860 * Kotlin: Improve string interpolation, modifier keyword handling, and various small issues (#1699)
861 * LESS: Support single-line comments (#1046)
862 * Matlab:
863
864 - Add support for class properties (#1466)
865 - Update builtin functions (#1705)
866 - Various cleanups (#1673)
867
868 * OpenEdge (#1696)
869 * Python: Improve handling of raw f-strings (#1681, #1683)
870 * Ruby: Better method name handling (#1531)
871 * Stata: Updated keywords (#1470)
872
873 - Added styles:
874
875 * Material (#1662)
876 * Zenburn (#1659)
877
878 - The `pygmentize` script now uses `argparse`, all options should work
879 as before
880
881 - Add `pygmentize -C` option to guess a lexer from content
882
883 - With this release, Pygments moves to a new internal testing system (#1649.)
884 See ``Contributing.md`` for details. The main advantage of this new change
885 is a much better test coverage of all existing example lexers. It also makes
886 it much easier to add new test snippets.
887 - Make guessing prefer Python 3 lexer
888 - Do not guess MIME or SQL without reason
889 - Changed setuptools to use a declarative config through ``setup.cfg``.
890 Building Pygments now requires setuptools 39.2+.
891 - Add markdown to MarkdownLexer aliases (#1687)
892 - Change line number handling
893
894 * In ``<table>`` based output, the ``td.linenos`` element will have either a
895 ``normal`` or ``special`` class attached. Previously, only ``special`` line
896 numbers got a class. This prevents styles from getting applied twice -
897 once via ``<pre>``, once via ``<span class="special">``. This also means
898 that ``td.linenos pre`` is no longer styled, instead, use
899 ``td.linenos .normal`` and ``td.linenos .special``.
900 * In the "inline" style, the DOM element order was changed. The line number
901 is added first, then the line is wrapped is wrapped by the highlighter.
902 This fixes lines not being fully highlighted.
903 * The visual output for inline and non-inline line numbers & highlighting,
904 as well as class-based and inline styling is now consistent.
905 * Line number styles are set to ``background-color: transparent`` and
906 ``color: inherit`` by default. This works much better with dark styles
907 which don't have colors set for line numbers.
908
909 - Remove "raw" alias from RawTokenLexer, so that it cannot be
910 selected by alias.
911 - Fix RawTokenLexer to work in Python 3 and handle exceptions.
912 - Add prompt colors to the Solarized theme (#1529)
913 - Image formatter supports background colors now (#1374)
914 - Add support for anchors in conjunction with inline line numbers (#1591)
915 - Modernize the codebase using ``pyupgrade`` (#1622)
916 - Add support for line numbers to the ``terminal256`` formatter (#1674, #1653)
917 - Improve ``analyze_text`` logic for ``ECL`` (#1610)
918 - Improve ``analyze_text`` logic for ``CBM Basic V2`` (#1607)
919 - Improve LaTeX formatter (#1708, #1709)
920
921
922 Version 2.7.4
923 -------------
924 (released January 12, 2021)
925
926 - Updated lexers:
927
928 - Apache configurations: Improve handling of malformed tags (#1656)
929 - CSS: Add support for variables (#1633, #1666)
930 - Crystal (#1650, #1670)
931 - Coq (#1648)
932 - Fortran: Add missing keywords (#1635, #1665)
933 - Ini (#1624)
934 - JavaScript and variants (#1647 -- missing regex flags, #1651)
935 - Markdown (#1623, #1617)
936 - Shell
937
938 - Lex trailing whitespace as part of the prompt (#1645)
939 - Add missing ``in`` keyword (#1652)
940
941 - SQL - Fix keywords (#1668)
942 - Typescript: Fix incorrect punctuation handling (#1510, #1511)
943
944 - Fix infinite loop in SML lexer (#1625), `CVE-2021-20270 <https://nvd.nist.gov/vuln/detail/CVE-2021-20270>`_
945 - Fix backtracking string regexes in JavaScript/TypeScript, Modula2
946 and many other lexers (#1637) `CVE-2021-27291 <https://nvd.nist.gov/vuln/detail/CVE-2021-27291>`_
947 - Limit recursion with nesting Ruby heredocs (#1638)
948 - Fix a few inefficient regexes for guessing lexers
949 - Fix the raw token lexer handling of Unicode (#1616)
950 - Revert a private API change in the HTML formatter (#1655) --
951 please note that private APIs remain subject to change!
952 - Fix several exponential/cubic-complexity regexes found by
953 Ben Caller/Doyensec (#1675)
954 - Fix incorrect MATLAB example (#1582)
955
956 Thanks to Google's OSS-Fuzz project for finding many of these bugs.
957
958
959 Version 2.7.3
960 -------------
961 (released December 6, 2020)
962
963 - Updated lexers:
964
965 * Ada (#1581)
966 * HTML (#1615, #1614)
967 * Java (#1594, #1586)
968 * JavaScript (#1605, #1589, #1588)
969 * JSON (#1569 -- this is a complete rewrite)
970 * Lean (#1601)
971 * LLVM (#1612)
972 * Mason (#1592)
973 * MySQL (#1555, #1551)
974 * Rust (#1608)
975 * Turtle (#1590, #1553)
976
977 - Deprecated JsonBareObjectLexer, which is now identical to JsonLexer (#1600)
978 - The ``ImgFormatter`` now calculates the exact character width, which fixes some issues with overlapping text (#1213, #1611)
979 - Documentation fixes (#1609, #1599, #1598)
980 - Fixed duplicated Juttle language alias (#1604, #1606)
981 - Added support for Kotlin scripts (#1587)
982 - Removed CSS rule which forced margin to 0
983
984
985 Version 2.7.2
986 -------------
987 (released October 24, 2020)
988
989 - Updated lexers:
990
991 * Latex (#1517, #1516)
992 * LLVM (#1565)
993 * SPARQL (#1559)
994
995 - Fix Python console/traceback lexer problems with custom exceptions without messages (#1548)
996 - Allow loading ttc fonts on Mac/image formatter (#1223)
997 - Improve ``analyze_text`` across a variety of lexers (#1549)
998 - Remove CSS rule which forced the vertical padding to 0 for line numbers (#1583, #1579)
999 - Fix ``TNTLexer`` crashing on unexpected EOL (#1568, #1570)
1000 - ``regexlint`` can be now run locally as part of ``tox`` tests (#1557)
1001 - Fix typos (#1550, #1562)
1002 - Add Python 3.9 as a supported version (#1554)
1003
1004
1005 Version 2.7.1
1006 -------------
1007 (released September 16, 2020)
1008
1009 - Fixed a regression in the JSON lexer (#1544)
1010
1011
1012 Version 2.7.0
1013 -------------
1014 (released September 12, 2020)
1015
1016 - Added lexers:
1017
1018 * Arrow (#1481, #1499)
1019 * BARE (#1488)
1020 * Devicetree (#1434)
1021 * F* (#1409)
1022 * GDScript (#1457)
1023 * Pointless (#1494)
1024 * PromQL (#1506)
1025 * PsySH (#1438)
1026 * Singularity (#1285)
1027 * TiddlyWiki5 (#1390)
1028 * TNT (#1414)
1029 * YANG (#1408, #1428)
1030
1031 - Updated lexers:
1032
1033 * APL (#1503)
1034 * C++ (#1350, which also fixes: #1222, #996, #906, #828, #1162, #1166,
1035 #1396)
1036 * Chapel (#1423)
1037 * CMake (#1491)
1038 * CSound (#1509)
1039 * Cython (#1507)
1040 * Dart (#1449)
1041 * Fennel (#1535)
1042 * Fortran (#1442)
1043 * GAS (#1530)
1044 * HTTP (#1432, #1520, #1521)
1045 * Inform 6 (#1461)
1046 * Javascript (#1533)
1047 * JSON (#1065, #1528)
1048 * Lean (#1415)
1049 * Matlab (#1399)
1050 * Markdown (#1492, #1495)
1051 * MySQL (#975, #1063, #1453, #1527)
1052 * NASM (#1465)
1053 * Nim (#1426)
1054 * PostgreSQL (#1513)
1055 * PowerShell (#1398, #1497)
1056 * Protobuf (#1505)
1057 * Robot (#1480)
1058 * SQL (#1402)
1059 * SystemVerilog (#1436, #1452, #1454, #1460, #1462, #1463, #1464, #1471, #1496, #1504)
1060 * TeraTerm (#1337)
1061 * XML (#1502)
1062
1063 - Added a new filter for math symbols (#1406)
1064 - The Kconfig lexer will match Kconfig derivative names now (#1458)
1065 - Improved HTML formatter output (#1500)
1066 - ``.markdown`` is now recognized as an extension for Markdown files (#1476)
1067 - Fixed line number colors for Solarized (#1477, #1356)
1068 - Improvements to exception handling (#1478)
1069 - Improvements to tests (#1532, #1533, #1539)
1070 - Various code cleanups (#1536, #1537, #1538)
1071
1072
1073 Version 2.6.1
1074 -------------
1075 (released March 8, 2020)
1076
1077 - This release fixes a packaging issue. No functional changes.
1078
1079
1080 Version 2.6
1081 -----------
1082 (released March 8, 2020)
1083
1084 - Running Pygments on Python 2.x is no longer supported.
1085 (The Python 2 lexer still exists.)
1086
1087 - Added lexers:
1088
1089 * Linux kernel logs (#1310)
1090 * LLVM MIR (#1361)
1091 * MiniScript (#1397)
1092 * Mosel (#1287, #1326)
1093 * Parsing Expression Grammar (#1336)
1094 * ReasonML (#1386)
1095 * Ride (#1319, #1321)
1096 * Sieve (#1257)
1097 * USD (#1290)
1098 * WebIDL (#1309)
1099
1100 - Updated lexers:
1101
1102 * Apache2 (#1378)
1103 * Chapel (#1357)
1104 * CSound (#1383)
1105 * D (#1375, #1362)
1106 * Haskell (#1347, #1177)
1107 * Idris (#1360)
1108 * Perl6/Raku lexer (#1344)
1109 * Python3 (#1382, #1385)
1110 * Rust: Updated lexer to cover more builtins (mostly macros) and miscellaneous
1111 new syntax (#1320)
1112 * SQL: Add temporal support keywords (#1402)
1113
1114 - The 256-color/true-color terminal formatters now support the italic attribute
1115 in styles (#1288)
1116 - Support HTTP 2/3 header (#1308)
1117 - Support missing reason in HTTP header (#1322)
1118 - Boogie/Silver: support line continuations and triggers, move contract keywords
1119 to separate category (#1299)
1120 - GAS: support C-style comments (#1291)
1121 - Fix names in S lexer (#1330, #1333)
1122 - Fix numeric literals in Ada (#1334)
1123 - Recognize ``.mjs`` files as Javascript (#1392)
1124 - Recognize ``.eex`` files as Elixir (#1387)
1125 - Fix ``re.MULTILINE`` usage (#1388)
1126 - Recognize ``pipenv`` and ``poetry`` dependency & lock files (PR#1376)
1127 - Improve font search on Windows (#1247)
1128 - Remove unused script block (#1401)
1129
1130
1131 Version 2.5.2
1132 -------------
1133 (released November 29, 2019)
1134
1135 - Fix incompatibility with some setuptools versions (PR#1316)
1136
1137 - Fix lexing of ReST field lists (PR#1279)
1138 - Fix lexing of Matlab keywords as field names (PR#1282)
1139 - Recognize double-quoted strings in Matlab (PR#1278)
1140 - Avoid slow backtracking in Vim lexer (PR#1312)
1141 - Fix Scala highlighting of types (PR#1315)
1142 - Highlight field lists more consistently in ReST (PR#1279)
1143 - Fix highlighting Matlab keywords in field names (PR#1282)
1144 - Recognize Matlab double quoted strings (PR#1278)
1145 - Add some Terraform keywords
1146 - Update Modelica lexer to 3.4
1147 - Update Crystal examples
1148
1149
1150 Version 2.5.1
1151 -------------
1152 (released November 26, 2019)
1153
1154 - This release fixes a packaging issue. No functional changes.
1155
1156
1157 Version 2.5.0
1158 -------------
1159 (released November 26, 2019)
1160
1161 - Added lexers:
1162
1163 * Email (PR#1246)
1164 * Erlang, Elixir shells (PR#823, #1521)
1165 * Notmuch (PR#1264)
1166 * `Scdoc <https://git.sr.ht/~sircmpwn/scdoc>`_ (PR#1268)
1167 * `Solidity <https://solidity.readthedocs.io/>`_ (#1214)
1168 * `Zeek <https://www.zeek.org>`_ (new name for Bro) (PR#1269)
1169 * `Zig <https://ziglang.org/>`_ (PR#820)
1170
1171 - Updated lexers:
1172
1173 * Apache2 Configuration (PR#1251)
1174 * Bash sessions (#1253)
1175 * CSound (PR#1250)
1176 * Dart
1177 * Dockerfile
1178 * Emacs Lisp
1179 * Handlebars (PR#773)
1180 * Java (#1101, #987)
1181 * Logtalk (PR#1261)
1182 * Matlab (PR#1271)
1183 * Praat (PR#1277)
1184 * Python3 (PR#1255, PR#1400)
1185 * Ruby
1186 * YAML (#1528)
1187 * Velocity
1188
1189 - Added styles:
1190
1191 * Inkpot (PR#1276)
1192
1193 - The ``PythonLexer`` class is now an alias for the former ``Python3Lexer``.
1194 The old ``PythonLexer`` is available as ``Python2Lexer``. Same change has
1195 been done for the ``PythonTracebackLexer``. The ``python3`` option for
1196 the ``PythonConsoleLexer`` is now true by default.
1197
1198 - Bump ``NasmLexer`` priority over ``TasmLexer`` for ``.asm`` files
1199 (fixes #1326)
1200 - Default font in the ``ImageFormatter`` has been updated (#928, PR#1245)
1201 - Test suite switched to py.test, removed nose dependency (#1490)
1202 - Reduce ``TeraTerm`` lexer score -- it used to match nearly all languages
1203 (#1256)
1204 - Treat ``Skylark``/``Starlark`` files as Python files (PR#1259)
1205 - Image formatter: actually respect ``line_number_separator`` option
1206
1207 - Add LICENSE file to wheel builds
1208 - Agda: fix lambda highlighting
1209 - Dart: support ``@`` annotations
1210 - Dockerfile: accept ``FROM ... AS`` syntax
1211 - Emacs Lisp: add more string functions
1212 - GAS: accept registers in directive arguments
1213 - Java: make structural punctuation (braces, parens, colon, comma) ``Punctuation``, not ``Operator`` (#987)
1214 - Java: support ``var`` contextual keyword (#1101)
1215 - Matlab: Fix recognition of ``function`` keyword (PR#1271)
1216 - Python: recognize ``.jy`` filenames (#976)
1217 - Python: recognize ``f`` string prefix (#1156)
1218 - Ruby: support squiggly heredocs
1219 - Shell sessions: recognize Virtualenv prompt (PR#1266)
1220 - Velocity: support silent reference syntax
1221
1222
1223 Version 2.4.2
1224 -------------
1225 (released May 28, 2019)
1226
1227 - Fix encoding error when guessing lexer with given ``encoding`` option
1228 (#1438)
1229
1230
1231 Version 2.4.1
1232 -------------
1233 (released May 24, 2019)
1234
1235 - Updated lexers:
1236
1237 * Coq (#1430)
1238 * MSDOS Session (PR#734)
1239 * NASM (#1517)
1240 * Objective-C (PR#813, #1508)
1241 * Prolog (#1511)
1242 * TypeScript (#1515)
1243
1244 - Support CSS variables in stylesheets (PR#814, #1356)
1245 - Fix F# lexer name (PR#709)
1246 - Fix ``TerminalFormatter`` using bold for bright text (#1480)
1247
1248
1249 Version 2.4.0
1250 -------------
1251 (released May 8, 2019)
1252
1253 - Added lexers:
1254
1255 * Augeas (PR#807)
1256 * BBC Basic (PR#806)
1257 * Boa (PR#756)
1258 * Charm++ CI (PR#788)
1259 * DASM16 (PR#807)
1260 * FloScript (PR#750)
1261 * FreeFem++ (PR#785)
1262 * Hspec (PR#790)
1263 * Pony (PR#627)
1264 * SGF (PR#780)
1265 * Slash (PR#807)
1266 * Slurm (PR#760)
1267 * Tera Term Language (PR#749)
1268 * TOML (PR#807)
1269 * Unicon (PR#731)
1270 * VBScript (PR#673)
1271
1272 - Updated lexers:
1273
1274 * Apache2 (PR#766)
1275 * Cypher (PR#746)
1276 * LLVM (PR#792)
1277 * Makefiles (PR#766)
1278 * PHP (#1482)
1279 * Rust
1280 * SQL (PR#672)
1281 * Stan (PR#774)
1282 * Stata (PR#800)
1283 * Terraform (PR#787)
1284 * YAML
1285
1286 - Add solarized style (PR#708)
1287 - Add support for Markdown reference-style links (PR#753)
1288 - Add license information to generated HTML/CSS files (#1496)
1289 - Change ANSI color names (PR#777)
1290 - Fix catastrophic backtracking in the bash lexer (#1494)
1291 - Fix documentation failing to build using Sphinx 2.0 (#1501)
1292 - Fix incorrect links in the Lisp and R lexer documentation (PR#775)
1293 - Fix rare unicode errors on Python 2.7 (PR#798, #1492)
1294 - Fix lexers popping from an empty stack (#1506)
1295 - TypoScript uses ``.typoscript`` now (#1498)
1296 - Updated Trove classifiers and ``pip`` requirements (PR#799)
1297
1298
1299
1300 Version 2.3.1
1301 -------------
1302 (released Dec 16, 2018)
1303
1304 - Updated lexers:
1305
1306 * ASM (PR#784)
1307 * Chapel (PR#735)
1308 * Clean (PR#621)
1309 * CSound (PR#684)
1310 * Elm (PR#744)
1311 * Fortran (PR#747)
1312 * GLSL (PR#740)
1313 * Haskell (PR#745)
1314 * Hy (PR#754)
1315 * Igor Pro (PR#764)
1316 * PowerShell (PR#705)
1317 * Python (PR#720, #1299, PR#715)
1318 * SLexer (PR#680)
1319 * YAML (PR#762, PR#724)
1320
1321 - Fix invalid string escape sequences
1322 - Fix `FutureWarning` introduced by regex changes in Python 3.7
1323
1324
1325 Version 2.3.0
1326 -------------
1327 (released Nov 25, 2018)
1328
1329 - Added lexers:
1330
1331 * Fennel (PR#783)
1332 * HLSL (PR#675)
1333
1334 - Updated lexers:
1335
1336 * Dockerfile (PR#714)
1337
1338 - Minimum Python versions changed to 2.7 and 3.5
1339 - Added support for Python 3.7 generator changes (PR#772)
1340 - Fix incorrect token type in SCSS for single-quote strings (#1322)
1341 - Use `terminal256` formatter if `TERM` contains `256` (PR#666)
1342 - Fix incorrect handling of GitHub style fences in Markdown (PR#741, #1389)
1343 - Fix `%a` not being highlighted in Python3 strings (PR#727)
1344
1345
1346 Version 2.2.0
1347 -------------
1348 (released Jan 22, 2017)
1349
1350 - Added lexers:
1351
1352 * AMPL
1353 * TypoScript (#1173)
1354 * Varnish config (PR#554)
1355 * Clean (PR#503)
1356 * WDiff (PR#513)
1357 * Flatline (PR#551)
1358 * Silver (PR#537)
1359 * HSAIL (PR#518)
1360 * JSGF (PR#546)
1361 * NCAR command language (PR#536)
1362 * Extempore (PR#530)
1363 * Cap'n Proto (PR#595)
1364 * Whiley (PR#573)
1365 * Monte (PR#592)
1366 * Crystal (PR#576)
1367 * Snowball (PR#589)
1368 * CapDL (PR#579)
1369 * NuSMV (PR#564)
1370 * SAS, Stata (PR#593)
1371
1372 - Added the ability to load lexer and formatter classes directly from files
1373 with the `-x` command line option and the `lexers.load_lexer_from_file()`
1374 and `formatters.load_formatter_from_file()` functions. (PR#559)
1375
1376 - Added `lexers.find_lexer_class_by_name()`. (#1203)
1377
1378 - Added new token types and lexing for magic methods and variables in Python
1379 and PHP.
1380
1381 - Added a new token type for string affixes and lexing for them in Python, C++
1382 and Postgresql lexers.
1383
1384 - Added a new token type for heredoc (and similar) string delimiters and
1385 lexing for them in C++, Perl, PHP, Postgresql and Ruby lexers.
1386
1387 - Styles can now define colors with ANSI colors for use in the 256-color
1388 terminal formatter. (PR#531)
1389
1390 - Improved the CSS lexer. (#1083, #1130)
1391
1392 - Added "Rainbow Dash" style. (PR#623)
1393
1394 - Delay loading `pkg_resources`, which takes a long while to import. (PR#690)
1395
1396
1397 Version 2.1.3
1398 -------------
1399 (released Mar 2, 2016)
1400
1401 - Fixed regression in Bash lexer (PR#563)
1402
1403
1404 Version 2.1.2
1405 -------------
1406 (released Feb 29, 2016)
1407
1408 - Fixed Python 3 regression in image formatter (#1215)
1409 - Fixed regression in Bash lexer (PR#562)
1410
1411
1412 Version 2.1.1
1413 -------------
1414 (released Feb 14, 2016)
1415
1416 - Fixed Jython compatibility (#1205)
1417 - Fixed HTML formatter output with leading empty lines (#1111)
1418 - Added a mapping table for LaTeX encodings and added utf8 (#1152)
1419 - Fixed image formatter font searching on Macs (#1188)
1420 - Fixed deepcopy-ing of Token instances (#1168)
1421 - Fixed Julia string interpolation (#1170)
1422 - Fixed statefulness of HttpLexer between get_tokens calls
1423 - Many smaller fixes to various lexers
1424
1425
1426 Version 2.1
1427 -----------
1428 (released Jan 17, 2016)
1429
1430 - Added lexers:
1431
1432 * Emacs Lisp (PR#431)
1433 * Arduino (PR#442)
1434 * Modula-2 with multi-dialect support (#1090)
1435 * Fortran fixed format (PR#213)
1436 * Archetype Definition language (PR#483)
1437 * Terraform (PR#432)
1438 * Jcl, Easytrieve (PR#208)
1439 * ParaSail (PR#381)
1440 * Boogie (PR#420)
1441 * Turtle (PR#425)
1442 * Fish Shell (PR#422)
1443 * Roboconf (PR#449)
1444 * Test Anything Protocol (PR#428)
1445 * Shen (PR#385)
1446 * Component Pascal (PR#437)
1447 * SuperCollider (PR#472)
1448 * Shell consoles (Tcsh, PowerShell, MSDOS) (PR#479)
1449 * Elm and J (PR#452)
1450 * Crmsh (PR#440)
1451 * Praat (PR#492)
1452 * CSound (PR#494)
1453 * Ezhil (PR#443)
1454 * Thrift (PR#469)
1455 * QVT Operational (PR#204)
1456 * Hexdump (PR#508)
1457 * CAmkES Configuration (PR#462)
1458
1459 - Added styles:
1460
1461 * Lovelace (PR#456)
1462 * Algol and Algol-nu (#1090)
1463
1464 - Added formatters:
1465
1466 * IRC (PR#458)
1467 * True color (24-bit) terminal ANSI sequences (#1142)
1468 (formatter alias: "16m")
1469
1470 - New "filename" option for HTML formatter (PR#527).
1471
1472 - Improved performance of the HTML formatter for long lines (PR#504).
1473
1474 - Updated autopygmentize script (PR#445).
1475
1476 - Fixed style inheritance for non-standard token types in HTML output.
1477
1478 - Added support for async/await to Python 3 lexer.
1479
1480 - Rewrote linenos option for TerminalFormatter (it's better, but slightly
1481 different output than before) (#1147).
1482
1483 - Javascript lexer now supports most of ES6 (#1100).
1484
1485 - Cocoa builtins updated for iOS 8.1 (PR#433).
1486
1487 - Combined BashSessionLexer and ShellSessionLexer, new version should support
1488 the prompt styles of either.
1489
1490 - Added option to pygmentize to show a full traceback on exceptions.
1491
1492 - Fixed incomplete output on Windows and Python 3 (e.g. when using iPython
1493 Notebook) (#1153).
1494
1495 - Allowed more traceback styles in Python console lexer (PR#253).
1496
1497 - Added decorators to TypeScript (PR#509).
1498
1499 - Fix highlighting of certain IRC logs formats (#1076).
1500
1501
1502 Version 2.0.2
1503 -------------
1504 (released Jan 20, 2015)
1505
1506 - Fix Python tracebacks getting duplicated in the console lexer (#1068).
1507
1508 - Backquote-delimited identifiers are now recognized in F# (#1062).
1509
1510
1511 Version 2.0.1
1512 -------------
1513 (released Nov 10, 2014)
1514
1515 - Fix an encoding issue when using ``pygmentize`` with the ``-o`` option.
1516
1517
1518 Version 2.0
1519 -----------
1520 (released Nov 9, 2014)
1521
1522 - Default lexer encoding is now "guess", i.e. UTF-8 / Locale / Latin1 is
1523 tried in that order.
1524
1525 - Major update to Swift lexer (PR#410).
1526
1527 - Multiple fixes to lexer guessing in conflicting cases:
1528
1529 * recognize HTML5 by doctype
1530 * recognize XML by XML declaration
1531 * don't recognize C/C++ as SystemVerilog
1532
1533 - Simplified regexes and builtin lists.
1534
1535
1536 Version 2.0rc1
1537 --------------
1538 (released Oct 16, 2014)
1539
1540 - Dropped Python 2.4 and 2.5 compatibility. This is in favor of single-source
1541 compatibility between Python 2.6, 2.7 and 3.3+.
1542
1543 - New website and documentation based on Sphinx (finally!)
1544
1545 - Lexers added:
1546
1547 * APL (#969)
1548 * Agda and Literate Agda (PR#203)
1549 * Alloy (PR#355)
1550 * AmbientTalk
1551 * BlitzBasic (PR#197)
1552 * ChaiScript (PR#24)
1553 * Chapel (PR#256)
1554 * Cirru (PR#275)
1555 * Clay (PR#184)
1556 * ColdFusion CFC (PR#283)
1557 * Cryptol and Literate Cryptol (PR#344)
1558 * Cypher (PR#257)
1559 * Docker config files
1560 * EBNF (PR#193)
1561 * Eiffel (PR#273)
1562 * GAP (PR#311)
1563 * Golo (PR#309)
1564 * Handlebars (PR#186)
1565 * Hy (PR#238)
1566 * Idris and Literate Idris (PR#210)
1567 * Igor Pro (PR#172)
1568 * Inform 6/7 (PR#281)
1569 * Intel objdump (PR#279)
1570 * Isabelle (PR#386)
1571 * Jasmin (PR#349)
1572 * JSON-LD (PR#289)
1573 * Kal (PR#233)
1574 * Lean (PR#399)
1575 * LSL (PR#296)
1576 * Limbo (PR#291)
1577 * Liquid (#977)
1578 * MQL (PR#285)
1579 * MaskJS (PR#280)
1580 * Mozilla preprocessors
1581 * Mathematica (PR#245)
1582 * NesC (PR#166)
1583 * Nit (PR#375)
1584 * Nix (PR#267)
1585 * Pan
1586 * Pawn (PR#211)
1587 * Perl 6 (PR#181)
1588 * Pig (PR#304)
1589 * Pike (PR#237)
1590 * QBasic (PR#182)
1591 * Red (PR#341)
1592 * ResourceBundle (#1038)
1593 * Rexx (PR#199)
1594 * Rql (PR#251)
1595 * Rsl
1596 * SPARQL (PR#78)
1597 * Slim (PR#366)
1598 * Swift (PR#371)
1599 * Swig (PR#168)
1600 * TADS 3 (PR#407)
1601 * Todo.txt todo lists
1602 * Twig (PR#404)
1603
1604 - Added a helper to "optimize" regular expressions that match one of many
1605 literal words; this can save 20% and more lexing time with lexers that
1606 highlight many keywords or builtins.
1607
1608 - New styles: "xcode" and "igor", similar to the default highlighting of
1609 the respective IDEs.
1610
1611 - The command-line "pygmentize" tool now tries a little harder to find the
1612 correct encoding for files and the terminal (#979).
1613
1614 - Added "inencoding" option for lexers to override "encoding" analogous
1615 to "outencoding" (#800).
1616
1617 - Added line-by-line "streaming" mode for pygmentize with the "-s" option.
1618 (PR#165) Only fully works for lexers that have no constructs spanning
1619 lines!
1620
1621 - Added an "envname" option to the LaTeX formatter to select a replacement
1622 verbatim environment (PR#235).
1623
1624 - Updated the Makefile lexer to yield a little more useful highlighting.
1625
1626 - Lexer aliases passed to ``get_lexer_by_name()`` are now case-insensitive.
1627
1628 - File name matching in lexers and formatters will now use a regex cache
1629 for speed (PR#205).
1630
1631 - Pygments will now recognize "vim" modelines when guessing the lexer for
1632 a file based on content (PR#118).
1633
1634 - Major restructure of the ``pygments.lexers`` module namespace. There are now
1635 many more modules with less lexers per module. Old modules are still around
1636 and re-export the lexers they previously contained.
1637
1638 - The NameHighlightFilter now works with any Name.* token type (#790).
1639
1640 - Python 3 lexer: add new exceptions from PEP 3151.
1641
1642 - Opa lexer: add new keywords (PR#170).
1643
1644 - Julia lexer: add keywords and underscore-separated number
1645 literals (PR#176).
1646
1647 - Lasso lexer: fix method highlighting, update builtins. Fix
1648 guessing so that plain XML isn't always taken as Lasso (PR#163).
1649
1650 - Objective C/C++ lexers: allow "@" prefixing any expression (#871).
1651
1652 - Ruby lexer: fix lexing of Name::Space tokens (#860) and of symbols
1653 in hashes (#873).
1654
1655 - Stan lexer: update for version 2.4.0 of the language (PR#162, PR#255, PR#377).
1656
1657 - JavaScript lexer: add the "yield" keyword (PR#196).
1658
1659 - HTTP lexer: support for PATCH method (PR#190).
1660
1661 - Koka lexer: update to newest language spec (PR#201).
1662
1663 - Haxe lexer: rewrite and support for Haxe 3 (PR#174).
1664
1665 - Prolog lexer: add different kinds of numeric literals (#864).
1666
1667 - F# lexer: rewrite with newest spec for F# 3.0 (#842), fix a bug with
1668 dotted chains (#948).
1669
1670 - Kotlin lexer: general update (PR#271).
1671
1672 - Rebol lexer: fix comment detection and analyse_text (PR#261).
1673
1674 - LLVM lexer: update keywords to v3.4 (PR#258).
1675
1676 - PHP lexer: add new keywords and binary literals (PR#222).
1677
1678 - external/markdown-processor.py updated to newest python-markdown (PR#221).
1679
1680 - CSS lexer: some highlighting order fixes (PR#231).
1681
1682 - Ceylon lexer: fix parsing of nested multiline comments (#915).
1683
1684 - C family lexers: fix parsing of indented preprocessor directives (#944).
1685
1686 - Rust lexer: update to 0.9 language version (PR#270, PR#388).
1687
1688 - Elixir lexer: update to 0.15 language version (PR#392).
1689
1690 - Fix swallowing incomplete tracebacks in Python console lexer (#874).
1691
1692
1693 Version 1.6
1694 -----------
1695 (released Feb 3, 2013)
1696
1697 - Lexers added:
1698
1699 * Dylan console (PR#149)
1700 * Logos (PR#150)
1701 * Shell sessions (PR#158)
1702
1703 - Fix guessed lexers not receiving lexer options (#838).
1704
1705 - Fix unquoted HTML attribute lexing in Opa (#841).
1706
1707 - Fixes to the Dart lexer (PR#160).
1708
1709
1710 Version 1.6rc1
1711 --------------
1712 (released Jan 9, 2013)
1713
1714 - Lexers added:
1715
1716 * AspectJ (PR#90)
1717 * AutoIt (PR#122)
1718 * BUGS-like languages (PR#89)
1719 * Ceylon (PR#86)
1720 * Croc (new name for MiniD)
1721 * CUDA (PR#75)
1722 * Dg (PR#116)
1723 * IDL (PR#115)
1724 * Jags (PR#89)
1725 * Julia (PR#61)
1726 * Kconfig (#711)
1727 * Lasso (PR#95, PR#113)
1728 * LiveScript (PR#84)
1729 * Monkey (PR#117)
1730 * Mscgen (PR#80)
1731 * NSIS scripts (PR#136)
1732 * OpenCOBOL (PR#72)
1733 * QML (PR#123)
1734 * Puppet (PR#133)
1735 * Racket (PR#94)
1736 * Rdoc (PR#99)
1737 * Robot Framework (PR#137)
1738 * RPM spec files (PR#124)
1739 * Rust (PR#67)
1740 * Smali (Dalvik assembly)
1741 * SourcePawn (PR#39)
1742 * Stan (PR#89)
1743 * Treetop (PR#125)
1744 * TypeScript (PR#114)
1745 * VGL (PR#12)
1746 * Visual FoxPro (#762)
1747 * Windows Registry (#819)
1748 * Xtend (PR#68)
1749
1750 - The HTML formatter now supports linking to tags using CTags files, when the
1751 python-ctags package is installed (PR#87).
1752
1753 - The HTML formatter now has a "linespans" option that wraps every line in a
1754 <span> tag with a specific id (PR#82).
1755
1756 - When deriving a lexer from another lexer with token definitions, definitions
1757 for states not in the child lexer are now inherited. If you override a state
1758 in the child lexer, an "inherit" keyword has been added to insert the base
1759 state at that position (PR#141).
1760
1761 - The C family lexers now inherit token definitions from a common base class,
1762 removing code duplication (PR#141).
1763
1764 - Use "colorama" on Windows for console color output (PR#142).
1765
1766 - Fix Template Haskell highlighting (PR#63).
1767
1768 - Fix some S/R lexer errors (PR#91).
1769
1770 - Fix a bug in the Prolog lexer with names that start with 'is' (#810).
1771
1772 - Rewrite Dylan lexer, add Dylan LID lexer (PR#147).
1773
1774 - Add a Java quickstart document (PR#146).
1775
1776 - Add a "external/autopygmentize" file that can be used as .lessfilter (#802).
1777
1778
1779 Version 1.5
1780 -----------
1781 (codename Zeitdilatation, released Mar 10, 2012)
1782
1783 - Lexers added:
1784
1785 * Awk (#630)
1786 * Fancy (#633)
1787 * PyPy Log
1788 * eC
1789 * Nimrod
1790 * Nemerle (#667)
1791 * F# (#353)
1792 * Groovy (#501)
1793 * PostgreSQL (#660)
1794 * DTD
1795 * Gosu (#634)
1796 * Octave (PR#22)
1797 * Standard ML (PR#14)
1798 * CFengine3 (#601)
1799 * Opa (PR#37)
1800 * HTTP sessions (PR#42)
1801 * JSON (PR#31)
1802 * SNOBOL (PR#30)
1803 * MoonScript (PR#43)
1804 * ECL (PR#29)
1805 * Urbiscript (PR#17)
1806 * OpenEdge ABL (PR#27)
1807 * SystemVerilog (PR#35)
1808 * Coq (#734)
1809 * PowerShell (#654)
1810 * Dart (#715)
1811 * Fantom (PR#36)
1812 * Bro (PR#5)
1813 * NewLISP (PR#26)
1814 * VHDL (PR#45)
1815 * Scilab (#740)
1816 * Elixir (PR#57)
1817 * Tea (PR#56)
1818 * Kotlin (PR#58)
1819
1820 - Fix Python 3 terminal highlighting with pygmentize (#691).
1821
1822 - In the LaTeX formatter, escape special &, < and > chars (#648).
1823
1824 - In the LaTeX formatter, fix display problems for styles with token
1825 background colors (#670).
1826
1827 - Enhancements to the Squid conf lexer (#664).
1828
1829 - Several fixes to the reStructuredText lexer (#636).
1830
1831 - Recognize methods in the ObjC lexer (#638).
1832
1833 - Fix Lua "class" highlighting: it does not have classes (#665).
1834
1835 - Fix degenerate regex in Scala lexer (#671) and highlighting bugs (#713, 708).
1836
1837 - Fix number pattern order in Ocaml lexer (#647).
1838
1839 - Fix generic type highlighting in ActionScript 3 (#666).
1840
1841 - Fixes to the Clojure lexer (PR#9).
1842
1843 - Fix degenerate regex in Nemerle lexer (#706).
1844
1845 - Fix infinite looping in CoffeeScript lexer (#729).
1846
1847 - Fix crashes and analysis with ObjectiveC lexer (#693, #696).
1848
1849 - Add some Fortran 2003 keywords.
1850
1851 - Fix Boo string regexes (#679).
1852
1853 - Add "rrt" style (#727).
1854
1855 - Fix infinite looping in Darcs Patch lexer.
1856
1857 - Lots of misc fixes to character-eating bugs and ordering problems in many
1858 different lexers.
1859
1860
1861 Version 1.4
1862 -----------
1863 (codename Unschärfe, released Jan 03, 2011)
1864
1865 - Lexers added:
1866
1867 * Factor (#520)
1868 * PostScript (#486)
1869 * Verilog (#491)
1870 * BlitzMax Basic (#478)
1871 * Ioke (#465)
1872 * Java properties, split out of the INI lexer (#445)
1873 * Scss (#509)
1874 * Duel/JBST
1875 * XQuery (#617)
1876 * Mason (#615)
1877 * GoodData (#609)
1878 * SSP (#473)
1879 * Autohotkey (#417)
1880 * Google Protocol Buffers
1881 * Hybris (#506)
1882
1883 - Do not fail in analyse_text methods (#618).
1884
1885 - Performance improvements in the HTML formatter (#523).
1886
1887 - With the ``noclasses`` option in the HTML formatter, some styles
1888 present in the stylesheet were not added as inline styles.
1889
1890 - Four fixes to the Lua lexer (#480, #481, #482, #497).
1891
1892 - More context-sensitive Gherkin lexer with support for more i18n translations.
1893
1894 - Support new OO keywords in Matlab lexer (#521).
1895
1896 - Small fix in the CoffeeScript lexer (#519).
1897
1898 - A bugfix for backslashes in ocaml strings (#499).
1899
1900 - Fix unicode/raw docstrings in the Python lexer (#489).
1901
1902 - Allow PIL to work without PIL.pth (#502).
1903
1904 - Allow seconds as a unit in CSS (#496).
1905
1906 - Support ``application/javascript`` as a JavaScript mime type (#504).
1907
1908 - Support `Offload <https://offload.codeplay.com/>`_ C++ Extensions as
1909 keywords in the C++ lexer (#484).
1910
1911 - Escape more characters in LaTeX output (#505).
1912
1913 - Update Haml/Sass lexers to version 3 (#509).
1914
1915 - Small PHP lexer string escaping fix (#515).
1916
1917 - Support comments before preprocessor directives, and unsigned/
1918 long long literals in C/C++ (#613, #616).
1919
1920 - Support line continuations in the INI lexer (#494).
1921
1922 - Fix lexing of Dylan string and char literals (#628).
1923
1924 - Fix class/procedure name highlighting in VB.NET lexer (#624).
1925
1926
1927 Version 1.3.1
1928 -------------
1929 (bugfix release, released Mar 05, 2010)
1930
1931 - The ``pygmentize`` script was missing from the distribution.
1932
1933
1934 Version 1.3
1935 -----------
1936 (codename Schneeglöckchen, released Mar 01, 2010)
1937
1938 - Added the ``ensurenl`` lexer option, which can be used to suppress the
1939 automatic addition of a newline to the lexer input.
1940
1941 - Lexers added:
1942
1943 * Ada
1944 * Coldfusion
1945 * Modula-2
1946 * Haxe
1947 * R console
1948 * Objective-J
1949 * Haml and Sass
1950 * CoffeeScript
1951
1952 - Enhanced reStructuredText highlighting.
1953
1954 - Added support for PHP 5.3 namespaces in the PHP lexer.
1955
1956 - Added a bash completion script for `pygmentize`, to the external/
1957 directory (#466).
1958
1959 - Fixed a bug in `do_insertions()` used for multi-lexer languages.
1960
1961 - Fixed a Ruby regex highlighting bug (#476).
1962
1963 - Fixed regex highlighting bugs in Perl lexer (#258).
1964
1965 - Add small enhancements to the C lexer (#467) and Bash lexer (#469).
1966
1967 - Small fixes for the Tcl, Debian control file, Nginx config,
1968 Smalltalk, Objective-C, Clojure, Lua lexers.
1969
1970 - Gherkin lexer: Fixed single apostrophe bug and added new i18n keywords.
1971
1972
1973 Version 1.2.2
1974 -------------
1975 (bugfix release, released Jan 02, 2010)
1976
1977 * Removed a backwards incompatibility in the LaTeX formatter that caused
1978 Sphinx to produce invalid commands when writing LaTeX output (#463).
1979
1980 * Fixed a forever-backtracking regex in the BashLexer (#462).
1981
1982
1983 Version 1.2.1
1984 -------------
1985 (bugfix release, released Jan 02, 2010)
1986
1987 * Fixed mishandling of an ellipsis in place of the frames in a Python
1988 console traceback, resulting in clobbered output.
1989
1990
1991 Version 1.2
1992 -----------
1993 (codename Neujahr, released Jan 01, 2010)
1994
1995 - Dropped Python 2.3 compatibility.
1996
1997 - Lexers added:
1998
1999 * Asymptote
2000 * Go
2001 * Gherkin (Cucumber)
2002 * CMake
2003 * Ooc
2004 * Coldfusion
2005 * Haxe
2006 * R console
2007
2008 - Added options for rendering LaTeX in source code comments in the
2009 LaTeX formatter (#461).
2010
2011 - Updated the Logtalk lexer.
2012
2013 - Added `line_number_start` option to image formatter (#456).
2014
2015 - Added `hl_lines` and `hl_color` options to image formatter (#457).
2016
2017 - Fixed the HtmlFormatter's handling of noclasses=True to not output any
2018 classes (#427).
2019
2020 - Added the Monokai style (#453).
2021
2022 - Fixed LLVM lexer identifier syntax and added new keywords (#442).
2023
2024 - Fixed the PythonTracebackLexer to handle non-traceback data in header or
2025 trailer, and support more partial tracebacks that start on line 2 (#437).
2026
2027 - Fixed the CLexer to not highlight ternary statements as labels.
2028
2029 - Fixed lexing of some Ruby quoting peculiarities (#460).
2030
2031 - A few ASM lexer fixes (#450).
2032
2033
2034 Version 1.1.1
2035 -------------
2036 (bugfix release, released Sep 15, 2009)
2037
2038 - Fixed the BBCode lexer (#435).
2039
2040 - Added support for new Jinja2 keywords.
2041
2042 - Fixed test suite failures.
2043
2044 - Added Gentoo-specific suffixes to Bash lexer.
2045
2046
2047 Version 1.1
2048 -----------
2049 (codename Brillouin, released Sep 11, 2009)
2050
2051 - Ported Pygments to Python 3. This needed a few changes in the way
2052 encodings are handled; they may affect corner cases when used with
2053 Python 2 as well.
2054
2055 - Lexers added:
2056
2057 * Antlr/Ragel, thanks to Ana Nelson
2058 * (Ba)sh shell
2059 * Erlang shell
2060 * GLSL
2061 * Prolog
2062 * Evoque
2063 * Modelica
2064 * Rebol
2065 * MXML
2066 * Cython
2067 * ABAP
2068 * ASP.net (VB/C#)
2069 * Vala
2070 * Newspeak
2071
2072 - Fixed the LaTeX formatter's output so that output generated for one style
2073 can be used with the style definitions of another (#384).
2074
2075 - Added "anchorlinenos" and "noclobber_cssfile" (#396) options to HTML
2076 formatter.
2077
2078 - Support multiline strings in Lua lexer.
2079
2080 - Rewrite of the JavaScript lexer by Pumbaa80 to better support regular
2081 expression literals (#403).
2082
2083 - When pygmentize is asked to highlight a file for which multiple lexers
2084 match the filename, use the analyse_text guessing engine to determine the
2085 winner (#355).
2086
2087 - Fixed minor bugs in the JavaScript lexer (#383), the Matlab lexer (#378),
2088 the Scala lexer (#392), the INI lexer (#391), the Clojure lexer (#387)
2089 and the AS3 lexer (#389).
2090
2091 - Fixed three Perl heredoc lexing bugs (#379, #400, #422).
2092
2093 - Fixed a bug in the image formatter which misdetected lines (#380).
2094
2095 - Fixed bugs lexing extended Ruby strings and regexes.
2096
2097 - Fixed a bug when lexing git diffs.
2098
2099 - Fixed a bug lexing the empty commit in the PHP lexer (#405).
2100
2101 - Fixed a bug causing Python numbers to be mishighlighted as floats (#397).
2102
2103 - Fixed a bug when backslashes are used in odd locations in Python (#395).
2104
2105 - Fixed various bugs in Matlab and S-Plus lexers, thanks to Winston Chang (#410,
2106 #411, #413, #414) and fmarc (#419).
2107
2108 - Fixed a bug in Haskell single-line comment detection (#426).
2109
2110 - Added new-style reStructuredText directive for docutils 0.5+ (#428).
2111
2112
2113 Version 1.0
2114 -----------
2115 (codename Dreiundzwanzig, released Nov 23, 2008)
2116
2117 - Don't use join(splitlines()) when converting newlines to ``\n``,
2118 because that doesn't keep all newlines at the end when the
2119 ``stripnl`` lexer option is False.
2120
2121 - Added ``-N`` option to command-line interface to get a lexer name
2122 for a given filename.
2123
2124 - Added Tango style, written by Andre Roberge for the Crunchy project.
2125
2126 - Added Python3TracebackLexer and ``python3`` option to
2127 PythonConsoleLexer.
2128
2129 - Fixed a few bugs in the Haskell lexer.
2130
2131 - Fixed PythonTracebackLexer to be able to recognize SyntaxError and
2132 KeyboardInterrupt (#360).
2133
2134 - Provide one formatter class per image format, so that surprises like::
2135
2136 pygmentize -f gif -o foo.gif foo.py
2137
2138 creating a PNG file are avoided.
2139
2140 - Actually use the `font_size` option of the image formatter.
2141
2142 - Fixed numpy lexer that it doesn't listen for `*.py` any longer.
2143
2144 - Fixed HTML formatter so that text options can be Unicode
2145 strings (#371).
2146
2147 - Unified Diff lexer supports the "udiff" alias now.
2148
2149 - Fixed a few issues in Scala lexer (#367).
2150
2151 - RubyConsoleLexer now supports simple prompt mode (#363).
2152
2153 - JavascriptLexer is smarter about what constitutes a regex (#356).
2154
2155 - Add Applescript lexer, thanks to Andreas Amann (#330).
2156
2157 - Make the codetags more strict about matching words (#368).
2158
2159 - NginxConfLexer is a little more accurate on mimetypes and
2160 variables (#370).
2161
2162
2163 Version 0.11.1
2164 --------------
2165 (released Aug 24, 2008)
2166
2167 - Fixed a Jython compatibility issue in pygments.unistring (#358).
2168
2169
2170 Version 0.11
2171 ------------
2172 (codename Straußenei, released Aug 23, 2008)
2173
2174 Many thanks go to Tim Hatch for writing or integrating most of the bug
2175 fixes and new features.
2176
2177 - Lexers added:
2178
2179 * Nasm-style assembly language, thanks to delroth
2180 * YAML, thanks to Kirill Simonov
2181 * ActionScript 3, thanks to Pierre Bourdon
2182 * Cheetah/Spitfire templates, thanks to Matt Good
2183 * Lighttpd config files
2184 * Nginx config files
2185 * Gnuplot plotting scripts
2186 * Clojure
2187 * POV-Ray scene files
2188 * Sqlite3 interactive console sessions
2189 * Scala source files, thanks to Krzysiek Goj
2190
2191 - Lexers improved:
2192
2193 * C lexer highlights standard library functions now and supports C99
2194 types.
2195 * Bash lexer now correctly highlights heredocs without preceding
2196 whitespace.
2197 * Vim lexer now highlights hex colors properly and knows a couple
2198 more keywords.
2199 * Irc logs lexer now handles xchat's default time format (#340) and
2200 correctly highlights lines ending in ``>``.
2201 * Support more delimiters for perl regular expressions (#258).
2202 * ObjectiveC lexer now supports 2.0 features.
2203
2204 - Added "Visual Studio" style.
2205
2206 - Updated markdown processor to Markdown 1.7.
2207
2208 - Support roman/sans/mono style defs and use them in the LaTeX
2209 formatter.
2210
2211 - The RawTokenFormatter is no longer registered to ``*.raw`` and it's
2212 documented that tokenization with this lexer may raise exceptions.
2213
2214 - New option ``hl_lines`` to HTML formatter, to highlight certain
2215 lines.
2216
2217 - New option ``prestyles`` to HTML formatter.
2218
2219 - New option *-g* to pygmentize, to allow lexer guessing based on
2220 filetext (can be slowish, so file extensions are still checked
2221 first).
2222
2223 - ``guess_lexer()`` now makes its decision much faster due to a cache
2224 of whether data is xml-like (a check which is used in several
2225 versions of ``analyse_text()``. Several lexers also have more
2226 accurate ``analyse_text()`` now.
2227
2228
2229 Version 0.10
2230 ------------
2231 (codename Malzeug, released May 06, 2008)
2232
2233 - Lexers added:
2234
2235 * Io
2236 * Smalltalk
2237 * Darcs patches
2238 * Tcl
2239 * Matlab
2240 * Matlab sessions
2241 * FORTRAN
2242 * XSLT
2243 * tcsh
2244 * NumPy
2245 * Python 3
2246 * S, S-plus, R statistics languages
2247 * Logtalk
2248
2249 - In the LatexFormatter, the *commandprefix* option is now by default
2250 'PY' instead of 'C', since the latter resulted in several collisions
2251 with other packages. Also, the special meaning of the *arg*
2252 argument to ``get_style_defs()`` was removed.
2253
2254 - Added ImageFormatter, to format code as PNG, JPG, GIF or BMP.
2255 (Needs the Python Imaging Library.)
2256
2257 - Support doc comments in the PHP lexer.
2258
2259 - Handle format specifications in the Perl lexer.
2260
2261 - Fix comment handling in the Batch lexer.
2262
2263 - Add more file name extensions for the C++, INI and XML lexers.
2264
2265 - Fixes in the IRC and MuPad lexers.
2266
2267 - Fix function and interface name highlighting in the Java lexer.
2268
2269 - Fix at-rule handling in the CSS lexer.
2270
2271 - Handle KeyboardInterrupts gracefully in pygmentize.
2272
2273 - Added BlackWhiteStyle.
2274
2275 - Bash lexer now correctly highlights math, does not require
2276 whitespace after semicolons, and correctly highlights boolean
2277 operators.
2278
2279 - Makefile lexer is now capable of handling BSD and GNU make syntax.
2280
2281
2282 Version 0.9
2283 -----------
2284 (codename Herbstzeitlose, released Oct 14, 2007)
2285
2286 - Lexers added:
2287
2288 * Erlang
2289 * ActionScript
2290 * Literate Haskell
2291 * Common Lisp
2292 * Various assembly languages
2293 * Gettext catalogs
2294 * Squid configuration
2295 * Debian control files
2296 * MySQL-style SQL
2297 * MOOCode
2298
2299 - Lexers improved:
2300
2301 * Greatly improved the Haskell and OCaml lexers.
2302 * Improved the Bash lexer's handling of nested constructs.
2303 * The C# and Java lexers exhibited abysmal performance with some
2304 input code; this should now be fixed.
2305 * The IRC logs lexer is now able to colorize weechat logs too.
2306 * The Lua lexer now recognizes multi-line comments.
2307 * Fixed bugs in the D and MiniD lexer.
2308
2309 - The encoding handling of the command line mode (pygmentize) was
2310 enhanced. You shouldn't get UnicodeErrors from it anymore if you
2311 don't give an encoding option.
2312
2313 - Added a ``-P`` option to the command line mode which can be used to
2314 give options whose values contain commas or equals signs.
2315
2316 - Added 256-color terminal formatter.
2317
2318 - Added an experimental SVG formatter.
2319
2320 - Added the ``lineanchors`` option to the HTML formatter, thanks to
2321 Ian Charnas for the idea.
2322
2323 - Gave the line numbers table a CSS class in the HTML formatter.
2324
2325 - Added a Vim 7-like style.
2326
2327
2328 Version 0.8.1
2329 -------------
2330 (released Jun 27, 2007)
2331
2332 - Fixed POD highlighting in the Ruby lexer.
2333
2334 - Fixed Unicode class and namespace name highlighting in the C# lexer.
2335
2336 - Fixed Unicode string prefix highlighting in the Python lexer.
2337
2338 - Fixed a bug in the D and MiniD lexers.
2339
2340 - Fixed the included MoinMoin parser.
2341
2342
2343 Version 0.8
2344 -----------
2345 (codename Maikäfer, released May 30, 2007)
2346
2347 - Lexers added:
2348
2349 * Haskell, thanks to Adam Blinkinsop
2350 * Redcode, thanks to Adam Blinkinsop
2351 * D, thanks to Kirk McDonald
2352 * MuPad, thanks to Christopher Creutzig
2353 * MiniD, thanks to Jarrett Billingsley
2354 * Vim Script, by Tim Hatch
2355
2356 - The HTML formatter now has a second line-numbers mode in which it
2357 will just integrate the numbers in the same ``<pre>`` tag as the
2358 code.
2359
2360 - The `CSharpLexer` now is Unicode-aware, which means that it has an
2361 option that can be set so that it correctly lexes Unicode
2362 identifiers allowed by the C# specs.
2363
2364 - Added a `RaiseOnErrorTokenFilter` that raises an exception when the
2365 lexer generates an error token, and a `VisibleWhitespaceFilter` that
2366 converts whitespace (spaces, tabs, newlines) into visible
2367 characters.
2368
2369 - Fixed the `do_insertions()` helper function to yield correct
2370 indices.
2371
2372 - The ReST lexer now automatically highlights source code blocks in
2373 ".. sourcecode:: language" and ".. code:: language" directive
2374 blocks.
2375
2376 - Improved the default style (thanks to Tiberius Teng). The old
2377 default is still available as the "emacs" style (which was an alias
2378 before).
2379
2380 - The `get_style_defs` method of HTML formatters now uses the
2381 `cssclass` option as the default selector if it was given.
2382
2383 - Improved the ReST and Bash lexers a bit.
2384
2385 - Fixed a few bugs in the Makefile and Bash lexers, thanks to Tim
2386 Hatch.
2387
2388 - Fixed a bug in the command line code that disallowed ``-O`` options
2389 when using the ``-S`` option.
2390
2391 - Fixed a bug in the `RawTokenFormatter`.
2392
2393
2394 Version 0.7.1
2395 -------------
2396 (released Feb 15, 2007)
2397
2398 - Fixed little highlighting bugs in the Python, Java, Scheme and
2399 Apache Config lexers.
2400
2401 - Updated the included manpage.
2402
2403 - Included a built version of the documentation in the source tarball.
2404
2405
2406 Version 0.7
2407 -----------
2408 (codename Faschingskrapfn, released Feb 14, 2007)
2409
2410 - Added a MoinMoin parser that uses Pygments. With it, you get
2411 Pygments highlighting in Moin Wiki pages.
2412
2413 - Changed the exception raised if no suitable lexer, formatter etc. is
2414 found in one of the `get_*_by_*` functions to a custom exception,
2415 `pygments.util.ClassNotFound`. It is, however, a subclass of
2416 `ValueError` in order to retain backwards compatibility.
2417
2418 - Added a `-H` command line option which can be used to get the
2419 docstring of a lexer, formatter or filter.
2420
2421 - Made the handling of lexers and formatters more consistent. The
2422 aliases and filename patterns of formatters are now attributes on
2423 them.
2424
2425 - Added an OCaml lexer, thanks to Adam Blinkinsop.
2426
2427 - Made the HTML formatter more flexible, and easily subclassable in
2428 order to make it easy to implement custom wrappers, e.g. alternate
2429 line number markup. See the documentation.
2430
2431 - Added an `outencoding` option to all formatters, making it possible
2432 to override the `encoding` (which is used by lexers and formatters)
2433 when using the command line interface. Also, if using the terminal
2434 formatter and the output file is a terminal and has an encoding
2435 attribute, use it if no encoding is given.
2436
2437 - Made it possible to just drop style modules into the `styles`
2438 subpackage of the Pygments installation.
2439
2440 - Added a "state" keyword argument to the `using` helper.
2441
2442 - Added a `commandprefix` option to the `LatexFormatter` which allows
2443 to control how the command names are constructed.
2444
2445 - Added quite a few new lexers, thanks to Tim Hatch:
2446
2447 * Java Server Pages
2448 * Windows batch files
2449 * Trac Wiki markup
2450 * Python tracebacks
2451 * ReStructuredText
2452 * Dylan
2453 * and the Befunge esoteric programming language (yay!)
2454
2455 - Added Mako lexers by Ben Bangert.
2456
2457 - Added "fruity" style, another dark background originally vim-based
2458 theme.
2459
2460 - Added sources.list lexer by Dennis Kaarsemaker.
2461
2462 - Added token stream filters, and a pygmentize option to use them.
2463
2464 - Changed behavior of `in` Operator for tokens.
2465
2466 - Added mimetypes for all lexers.
2467
2468 - Fixed some problems lexing Python strings.
2469
2470 - Fixed tickets: #167, #178, #179, #180, #185, #201.
2471
2472
2473 Version 0.6
2474 -----------
2475 (codename Zimtstern, released Dec 20, 2006)
2476
2477 - Added option for the HTML formatter to write the CSS to an external
2478 file in "full document" mode.
2479
2480 - Added RTF formatter.
2481
2482 - Added Bash and Apache configuration lexers (thanks to Tim Hatch).
2483
2484 - Improved guessing methods for various lexers.
2485
2486 - Added `@media` support to CSS lexer (thanks to Tim Hatch).
2487
2488 - Added a Groff lexer (thanks to Tim Hatch).
2489
2490 - License change to BSD.
2491
2492 - Added lexers for the Myghty template language.
2493
2494 - Added a Scheme lexer (thanks to Marek Kubica).
2495
2496 - Added some functions to iterate over existing lexers, formatters and
2497 lexers.
2498
2499 - The HtmlFormatter's `get_style_defs()` can now take a list as an
2500 argument to generate CSS with multiple prefixes.
2501
2502 - Support for guessing input encoding added.
2503
2504 - Encoding support added: all processing is now done with Unicode
2505 strings, input and output are converted from and optionally to byte
2506 strings (see the ``encoding`` option of lexers and formatters).
2507
2508 - Some improvements in the C(++) lexers handling comments and line
2509 continuations.
2510
2511
2512 Version 0.5.1
2513 -------------
2514 (released Oct 30, 2006)
2515
2516 - Fixed traceback in ``pygmentize -L`` (thanks to Piotr Ozarowski).
2517
2518
2519 Version 0.5
2520 -----------
2521 (codename PyKleur, released Oct 30, 2006)
2522
2523 - Initial public release.