Update dependency Pygments to v2.21.0 #184

Merged
renovate-bot merged 1 commit from renovate/pygments-2.x into master 2026-08-19 10:02:31 +02:00
Collaborator

This PR contains the following updates:

Package Change Age Confidence
Pygments (changelog) ==2.20.0 → ==2.21.0 age confidence

Release Notes

pygments/pygments (Pygments)

v2.21.0

Compare Source

(released August 17th, 2026)

  • New lexers:

  • Updated lexers:

    • Bash: Fix coloured keyword at the beginning of a name (#​2926)
    • Boogie: Add missing Boogie and Civl Verifier keywords (#​3156)
    • C#:
      • Recognize interpolated verbatim strings with either $@ or @$
        prefixes (#​2685)
      • Support dollar-prefixed and multi-quote raw strings (#​3129, #​2897)
      • Recognize union (#​3182)
    • C/C++:
      • Add C23/C++26 attributes (#​3084)
      • Add more C2Y keywords (#​3092)
      • Highlight a function following a namespace body (#​2928)
      • Fix C/C++ lexer support for multiline pre-processor comments (#​3051)
      • Add .ipp as a file extension (#​3141, #​1008)
    • Clojure: Recognize named, octal and unicode character literals such as
      \space and \o377 as a single token (#​979)
    • Csound: Add missing opcode parameter type letter (#​3161)
    • CUDA: Derive from the C++ lexer instead of C to highlight C++
      constructs such as template, class and namespace (#​3127)
    • D: Allow non-ASCII (Unicode) identifiers (#​1088)
    • Fish: Fix single quote backslash escape (#​3138, #​2821)
    • Go: Various lexer improvements (#​3199)
    • GoogleSQL: Require a word break after SET (#​3167)
    • Hexdump: Only match valid digits (#​3200, #​2847)
    • JavaScript: Highlight the arguments object (#​3146)
    • Jsonnet: Recognize colons in array slice expressions (#​2828)
    • JSX: Allow apostrophes in element text (#​2816)
    • Julia: Fix rstrings backslash (#​3140, #​2537)
    • Kotlin: Support companion objects without an explicit name (#​2525)
    • Kotlin: Don't let a nullable type marker (?) consume the following
      character, so Foo?, and a?:b tokenize correctly (#​2964)
    • Kusto: Recognize member-access dots in dynamic objects (#​2779)
    • Lua: Various improvements (#​3143)
    • Macaulay2: Update symbols to 1.26.05 (#​3120)
    • Markdown:
      • Highlight bold-italics (***...*** and ___...___) (#​3067)
      • Fix mention regex to support hyphens in usernames (#​3139, #​3135)
    • Markdown, reStructuredText, TiddlyWiki5: Fix wrong token offsets for
      embedded code blocks (#​3133)
    • Mathematica: Recognize \[Name] named-character escapes such as
      \[Nu] instead of emitting an Error token (#​3097)
    • MATLAB, Octave, Scilab: Allow ... line continuations in function
      definition signatures (#​659)
    • MySQL: Require a word break after SET (#​3110)
    • PostgreSQL: Add more keywords (#​3066)
    • Python:
    • reStructuredText: Allow . and + in directive/role names (#​3085)
    • Ruby: Don't duplicate the body of an unterminated heredoc (#​2998)
    • Ruby: Treat << after ), ] or } as the shift operator
      rather than the start of a heredoc (#​760)
    • SCSS: Recognize variable references in property values (#​2818)
    • Shell: Recognize chevron prompts (#​3096)
    • Smithy: Fix text blocks and add missing syntax (#​3168)
    • Swift: Keep func a keyword in class func type methods (#​1125)
    • Tcl: Stop $name variable references at a dash (#​1720)
    • TeX: Recognize LaTeX math environments as math (#​3034)
    • Twig: Allow uppercase letters at the start of identifiers (#​3159, #​2965)
    • TypeScript: Only treat module as a keyword when followed by
      whitespace, so identifiers like modules and module.exports
      are highlighted correctly (#​2823)
    • Vala: Recognize verbatim strings before ordinary quoted strings (#​2861)
    • Vala: Recognize conditional compilation directives (#​2858)
    • Vim:
    • YAML: Add yml alias (#​3169), recognize non-breaking spaces as valid
      scalar content (#​2827)
    • WebAssembly: Recognize sign-extension operators (#​2991, #​3160)
    • XML: Mark SVG files as XML (#​3093)
  • New styles:

  • Fix catastrophic backtracking in looks_like_xml (#​2931, #​3112)

  • Improve monokai theme colors (#​3100)

  • Improve handling of non-string types in html_escape to fix broken clients (#​3090, #​3086)

  • LaTeX formatter: honor the wrapped lexer's stripnl and other input
    options when escapeinside is set, so blank lines are no longer stripped
    under stripnl=false (#​2975)

  • RawTokenFormatter: fix a crash when error_color is set (#​3215)

  • Groff formatter: don't duplicate a character when word-wrapping (wrap)
    a token that is not at the end of a line (#​3201)

  • Add support for Python 3.15 (#​3099)

  • Fix invalid -L values report success (#​3217)

  • Allow transparent as a color style definition (#​3180, #​3170)

  • HtmlFormatter: " and ' now render literally (#​3185)


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [Pygments](https://github.com/pygments/pygments) ([changelog](https://github.com/pygments/pygments/blob/master/CHANGES)) | `==2.20.0` → `==2.21.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pygments/2.21.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pygments/2.20.0/2.21.0?slim=true) | --- ### Release Notes <details> <summary>pygments/pygments (Pygments)</summary> ### [`v2.21.0`](https://github.com/pygments/pygments/blob/HEAD/CHANGES#Version-2210) [Compare Source](https://github.com/pygments/pygments/compare/2.20.0...2.21.0) (released August 17th, 2026) - New lexers: - BitBake ([#&#8203;3103](https://github.com/pygments/pygments/issues/3103)) - Caddyfile ([#&#8203;3225](https://github.com/pygments/pygments/issues/3225)) - CEL ([#&#8203;3048](https://github.com/pygments/pygments/issues/3048)) - PureScript ([#&#8203;1077](https://github.com/pygments/pygments/issues/1077), [#&#8203;3054](https://github.com/pygments/pygments/issues/3054)) - Updated lexers: - Bash: Fix coloured keyword at the beginning of a name ([#&#8203;2926](https://github.com/pygments/pygments/issues/2926)) - Boogie: Add missing Boogie and Civl Verifier keywords ([#&#8203;3156](https://github.com/pygments/pygments/issues/3156)) - C#: - Recognize interpolated verbatim strings with either `$@` or `@$` prefixes ([#&#8203;2685](https://github.com/pygments/pygments/issues/2685)) - Support dollar-prefixed and multi-quote raw strings ([#&#8203;3129](https://github.com/pygments/pygments/issues/3129), [#&#8203;2897](https://github.com/pygments/pygments/issues/2897)) - Recognize `union` ([#&#8203;3182](https://github.com/pygments/pygments/issues/3182)) - C/C++: - Add C23/C++26 attributes ([#&#8203;3084](https://github.com/pygments/pygments/issues/3084)) - Add more C2Y keywords ([#&#8203;3092](https://github.com/pygments/pygments/issues/3092)) - Highlight a function following a namespace body ([#&#8203;2928](https://github.com/pygments/pygments/issues/2928)) - Fix C/C++ lexer support for multiline pre-processor comments ([#&#8203;3051](https://github.com/pygments/pygments/issues/3051)) - Add `.ipp` as a file extension ([#&#8203;3141](https://github.com/pygments/pygments/issues/3141), [#&#8203;1008](https://github.com/pygments/pygments/issues/1008)) - Clojure: Recognize named, octal and unicode character literals such as `\space` and `\o377` as a single token ([#&#8203;979](https://github.com/pygments/pygments/issues/979)) - Csound: Add missing opcode parameter type letter ([#&#8203;3161](https://github.com/pygments/pygments/issues/3161)) - CUDA: Derive from the C++ lexer instead of C to highlight C++ constructs such as `template`, `class` and `namespace` ([#&#8203;3127](https://github.com/pygments/pygments/issues/3127)) - D: Allow non-ASCII (Unicode) identifiers ([#&#8203;1088](https://github.com/pygments/pygments/issues/1088)) - Fish: Fix single quote backslash escape ([#&#8203;3138](https://github.com/pygments/pygments/issues/3138), [#&#8203;2821](https://github.com/pygments/pygments/issues/2821)) - Go: Various lexer improvements ([#&#8203;3199](https://github.com/pygments/pygments/issues/3199)) - GoogleSQL: Require a word break after `SET` ([#&#8203;3167](https://github.com/pygments/pygments/issues/3167)) - Hexdump: Only match valid digits ([#&#8203;3200](https://github.com/pygments/pygments/issues/3200), [#&#8203;2847](https://github.com/pygments/pygments/issues/2847)) - JavaScript: Highlight the `arguments` object ([#&#8203;3146](https://github.com/pygments/pygments/issues/3146)) - Jsonnet: Recognize colons in array slice expressions ([#&#8203;2828](https://github.com/pygments/pygments/issues/2828)) - JSX: Allow apostrophes in element text ([#&#8203;2816](https://github.com/pygments/pygments/issues/2816)) - Julia: Fix rstrings backslash ([#&#8203;3140](https://github.com/pygments/pygments/issues/3140), [#&#8203;2537](https://github.com/pygments/pygments/issues/2537)) - Kotlin: Support companion objects without an explicit name ([#&#8203;2525](https://github.com/pygments/pygments/issues/2525)) - Kotlin: Don't let a nullable type marker (`?`) consume the following character, so `Foo?,` and `a?:b` tokenize correctly ([#&#8203;2964](https://github.com/pygments/pygments/issues/2964)) - Kusto: Recognize member-access dots in dynamic objects ([#&#8203;2779](https://github.com/pygments/pygments/issues/2779)) - Lua: Various improvements ([#&#8203;3143](https://github.com/pygments/pygments/issues/3143)) - Macaulay2: Update symbols to 1.26.05 ([#&#8203;3120](https://github.com/pygments/pygments/issues/3120)) - Markdown: - Highlight bold-italics (`***...***` and `___...___`) ([#&#8203;3067](https://github.com/pygments/pygments/issues/3067)) - Fix mention regex to support hyphens in usernames ([#&#8203;3139](https://github.com/pygments/pygments/issues/3139), [#&#8203;3135](https://github.com/pygments/pygments/issues/3135)) - Markdown, reStructuredText, TiddlyWiki5: Fix wrong token offsets for embedded code blocks ([#&#8203;3133](https://github.com/pygments/pygments/issues/3133)) - Mathematica: Recognize `\[Name]` named-character escapes such as `\[Nu]` instead of emitting an `Error` token ([#&#8203;3097](https://github.com/pygments/pygments/issues/3097)) - MATLAB, Octave, Scilab: Allow `...` line continuations in function definition signatures ([#&#8203;659](https://github.com/pygments/pygments/issues/659)) - MySQL: Require a word break after `SET` ([#&#8203;3110](https://github.com/pygments/pygments/issues/3110)) - PostgreSQL: Add more keywords ([#&#8203;3066](https://github.com/pygments/pygments/issues/3066)) - Python: - Recognize `sentinel` ([#&#8203;3114](https://github.com/pygments/pygments/issues/3114)) - Recognize `frozendict` ([#&#8203;3119](https://github.com/pygments/pygments/issues/3119)) - Recognize lazy imports ([#&#8203;3115](https://github.com/pygments/pygments/issues/3115)) - reStructuredText: Allow `.` and `+` in directive/role names ([#&#8203;3085](https://github.com/pygments/pygments/issues/3085)) - Ruby: Don't duplicate the body of an unterminated heredoc ([#&#8203;2998](https://github.com/pygments/pygments/issues/2998)) - Ruby: Treat `<<` after `)`, `]` or `}` as the shift operator rather than the start of a heredoc ([#&#8203;760](https://github.com/pygments/pygments/issues/760)) - SCSS: Recognize variable references in property values ([#&#8203;2818](https://github.com/pygments/pygments/issues/2818)) - Shell: Recognize chevron prompts ([#&#8203;3096](https://github.com/pygments/pygments/issues/3096)) - Smithy: Fix text blocks and add missing syntax ([#&#8203;3168](https://github.com/pygments/pygments/issues/3168)) - Swift: Keep `func` a keyword in `class func` type methods ([#&#8203;1125](https://github.com/pygments/pygments/issues/1125)) - Tcl: Stop `$name` variable references at a dash ([#&#8203;1720](https://github.com/pygments/pygments/issues/1720)) - TeX: Recognize LaTeX math environments as math ([#&#8203;3034](https://github.com/pygments/pygments/issues/3034)) - Twig: Allow uppercase letters at the start of identifiers ([#&#8203;3159](https://github.com/pygments/pygments/issues/3159), [#&#8203;2965](https://github.com/pygments/pygments/issues/2965)) - TypeScript: Only treat `module` as a keyword when followed by whitespace, so identifiers like `modules` and `module.exports` are highlighted correctly ([#&#8203;2823](https://github.com/pygments/pygments/issues/2823)) - Vala: Recognize verbatim strings before ordinary quoted strings ([#&#8203;2861](https://github.com/pygments/pygments/issues/2861)) - Vala: Recognize conditional compilation directives ([#&#8203;2858](https://github.com/pygments/pygments/issues/2858)) - Vim: - Bump the syntax file to vim 9.2 ([#&#8203;3183](https://github.com/pygments/pygments/issues/3183), [#&#8203;3174](https://github.com/pygments/pygments/issues/3174)) - Small improvements to the VimScript lexer ([#&#8203;3173](https://github.com/pygments/pygments/issues/3173)) - YAML: Add `yml` alias ([#&#8203;3169](https://github.com/pygments/pygments/issues/3169)), recognize non-breaking spaces as valid scalar content ([#&#8203;2827](https://github.com/pygments/pygments/issues/2827)) - WebAssembly: Recognize sign-extension operators ([#&#8203;2991](https://github.com/pygments/pygments/issues/2991), [#&#8203;3160](https://github.com/pygments/pygments/issues/3160)) - XML: Mark SVG files as XML ([#&#8203;3093](https://github.com/pygments/pygments/issues/3093)) - New styles: - Night Owl ([#&#8203;3132](https://github.com/pygments/pygments/issues/3132)) - Fix catastrophic backtracking in `looks_like_xml` ([#&#8203;2931](https://github.com/pygments/pygments/issues/2931), [#&#8203;3112](https://github.com/pygments/pygments/issues/3112)) - Improve monokai theme colors ([#&#8203;3100](https://github.com/pygments/pygments/issues/3100)) - Improve handling of non-string types in `html_escape` to fix broken clients ([#&#8203;3090](https://github.com/pygments/pygments/issues/3090), [#&#8203;3086](https://github.com/pygments/pygments/issues/3086)) - LaTeX formatter: honor the wrapped lexer's `stripnl` and other input options when `escapeinside` is set, so blank lines are no longer stripped under `stripnl=false` ([#&#8203;2975](https://github.com/pygments/pygments/issues/2975)) - RawTokenFormatter: fix a crash when `error_color` is set ([#&#8203;3215](https://github.com/pygments/pygments/issues/3215)) - Groff formatter: don't duplicate a character when word-wrapping (`wrap`) a token that is not at the end of a line ([#&#8203;3201](https://github.com/pygments/pygments/issues/3201)) - Add support for Python 3.15 ([#&#8203;3099](https://github.com/pygments/pygments/issues/3099)) - Fix invalid `-L` values report success ([#&#8203;3217](https://github.com/pygments/pygments/issues/3217)) - Allow `transparent` as a color style definition ([#&#8203;3180](https://github.com/pygments/pygments/issues/3180), [#&#8203;3170](https://github.com/pygments/pygments/issues/3170)) - HtmlFormatter: `"` and `'` now render literally ([#&#8203;3185](https://github.com/pygments/pygments/issues/3185)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zMy4yIiwidXBkYXRlZEluVmVyIjoiNDQuMzMuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
Update dependency Pygments to v2.21.0
All checks were successful
Python formatting PEP8 / Python-PEP8 (push) Successful in 12s
Renovate / forgejo (push) Successful in 17s
Test / test (push) Successful in 15s
Test / test (pull_request) Successful in 15s
7026151b68
renovate-bot scheduled this pull request to auto merge when all checks succeed 2026-08-19 10:01:12 +02:00
renovate-bot deleted branch renovate/pygments-2.x 2026-08-19 10:02:31 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
finn/reminder!184
No description provided.