pypi Pygments 2.11.0

latest releases: 2.18.0, 2.17.2, 2.17.1...
2 years ago
  • Added lexers:

  • Updated lexers:

    • ABNF: Allow one-character rules (#1804)
    • Assembly: Fix incorrect token endings (#1895, #1961)
    • Bibtex: Distinguish between comment and commentary (#1899, #1806)
    • C family: Support unicode identifiers (#1848)
    • CDDL: Fix slow lexing speed (#1959)
    • Debian control: Add missing fields (#1946)
    • Devicetree: Recognize hexadecimal addresses for nodes (#1949)
    • GDScript: Add void data type (#1948)
    • GSQL
      • Fix comment handling (#2002)
      • Fix catastrophic backtracking (#2006)
    • HTML, XML: Improve comment handling (#1896)
    • Java: Add yield (#1941) and sealed classes/record (#1902)
    • Makefiles (#1860, #1898)
    • objdump-nasm: Improve handling of --no-show-raw-insn dumps (#1981)
    • Prolog: Support escaped \ inside quoted strings (#1479)
    • Python:
      • Support ~ in tracebacks (#2004)
      • Support the pattern matching keywords (#1797, #1994)
    • RobotFramework: Improve empty brace handling (#1921, #1922)
    • Terraform
      • Add the 'set' type (#1909)
      • Support heredocs (#1909)
  • Added styles:

  • 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)

  • Clean up unused imports (#1887)

  • Fix multiple lexers producing repeated single-character tokens

  • Fix multiple lexers marking whitespace as Text (#1237, #1905, #1908, #1914, #1911, #1923, #1939, #1957, #1978)

  • Remove duplicated assignments in the Paraiso style (#1934)

  • pygmentize supports JSON output for the various list functions now, making it easier to consume them from scripts. (#1437, #1890)

  • Use the shell lexer for kshrc files (#1947)

  • Use the ruby lexer for Vagrantfile files (#1936)

  • Use the C lexer for .xbm and .xpm files (#1802)

  • Add a groff formatter (#1873)

  • Update documentation (#1928)

  • Line anchors now link to themselves (#1973)

  • Add official support for Python 3.10 (#1917)

  • Fix several missing colors in dark styles: Gruvbox dark, Monokai, Rrt, Sas, Strata dark (#1955)

  • Associate more file types with man pages

  • The HtmlFormatter can now emit tooltips for each token to ease debugging of lexers (#1822)

  • Add f90 as an alias for fortran (#2000)

Don't miss a new Pygments release

NewReleases is sending notifications on new releases.