Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-pygments
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-pygments: update to 2.21.0.
Version 2.21.0
---------------
(released August 17th, 2026)
- New lexers:
* BitBake (#3103)
* Caddyfile (#3225)
* CEL (#3048)
* PureScript (#1077, #3054)
- 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:
- Recognize ``sentinel`` (#3114)
- Recognize ``frozendict`` (#3119)
- Recognize lazy imports (#3115)
* 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:
- Bump the syntax file to vim 9.2 (#3183, #3174)
- Small improvements to the VimScript lexer (#3173)
* 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:
* Night Owl (#3132)
- 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)
py-pygments: update to 2.20.0. Version 2.20.0 -------------- (released March 29th, 2026) - New lexers: * Rell (#2914) - Updated lexers: * archetype: Fix catastrophic backtracking in GUID and ID patterns (#3064) * ASN.1: Recognize minus sign and fix range operator (#3014, #3060) * C++: Add C++26 keywords (#2955), add integer literal suffixes (#2966) * ComponentPascal: Fix ``analyse_text`` (#3028, #3032) * Coq renamed to Rocq (#2883, #2908) * Cython: Various improvements (#2932, #2933) * Debian control: Improve architecture parsing (#3052) * Devicetree: Add support for overlay/fragments (#3021), add bytestring support (#3022), fix catastrophic backtracking (#3057) * Fennel: Various improvements (#2911) * Haskell: Handle escape sequences in character literals (#3069, #1795) * Java: Add module keywords (#2955) * Lean4: Add operators ``]'``, ``]?``, ``]!`` (#2946) * LESS: Support single-line comments (#3005) * LilyPond: Update to 2.25.29 (#2974) * LLVM: Support C-style comments (#3023, #2978) * Lua(u): Fix catastrophic backtracking (#3047) * Macaulay2: Update to 1.25.05 (#2893), 1.25.11 (#2988) * Mathematica: Various improvements (#2957) * meson: Add additional operators (#2919) * MySQL: Update keywords (#2970) * org-Mode: Support both schedule and deadline (#2899) * PHP: Add ``__PROPERTY__`` magic constant (#2924), add reserved keywords (#3002) * PostgreSQL: Add more keywords (#2985) * protobuf: Fix namespace tokenization (#2929) * Python: Add ``t``-string support (#2973, #3009, #3010) * Tablegen: Fix infinite loop (#2972, #2940) * Tera Term macro: Add commands introduced in v5.3 through v5.6 (#2951) * TOML: Support TOML 1.1.0 (#3026, #3027) * Turtle: Allow empty comment lines (#2980) * XML: Added ``.xbrl`` as file ending (#2890, #2891) - Drop Python 3.8, and add Python 3.14 as a supported version (#2987, #3012) - Various improvements to ``autopygmentize`` (#2894) - Update ``onedark`` style to support more token types (#2977) - Update ``rtt`` style to support more token types (#2895) - Cache entry points to improve performance (#2979) - Fix ``xterm-256`` color table (#3043) - Fix ``kwargs`` dictionary getting mutated on each call (#3044)
py-pygments: updated to 2.19.2 2.19.2 * Lua: Fix regression introduced in 2.19.0
py-pygments: updated to 2.19.1 Version 2.19.1 - Updated lexers: * Ini: Fix quoted string regression introduced in 2.19.0 * Lua: Fix a regression introduced in 2.19.0 Version 2.19.0 - New lexers: * CodeQL * Debian Sources * Gleam * GoogleSQL * JSON5 * Maple * NumbaIR * PDDL * Rego * TableGen * Vue.js - Updated lexers: * BQN: Various improvements * C#: Fix number highlighting * CSS: Add ``revert`` * Debian control: Add ``Change-By`` field * Elip: Improve punctuation handling * Igor: Add ``int`` * Ini: Fix quoted strings with embedded comment characters * Java: Support functions returning types containing a question mark * JavaScript: Support private identiiers * LLVM: Add ``splat``, improve floating-point number parsing * Lua: Improve variable detection, add built-in functions * Macaulay2: Update to 1.24.11 * PostgreSQL: Add more ``EXPLAIN`` keywords * S-Lexer: Fix keywords * TransactSQL: Fix single-line comments * Turtle: Fix triple quoted strings * Typst: Various improvements * Various: Add ``^`` as an operator to Matlab, Octave and Scilab * Vyper: Add ``staticcall`` and ``extcall`` * Mark file extensions for ``HTML/XML+Evoque`` as aliases * Add a color for ``Operator.Word`` to the ``rrt`` style * Fix broken link in the documentation * Drop executable bit where not needed * Reduce Mojo priority relative to Python in ``analyze_text´` * Fix documentation builds * Match example file names to the lexer's name * Ensure lexer metadata is present * Search more directories on macOS for fonts * Improve test robustness
py-pygments: update to 2.18.0.
Version 2.18.0
--------------
(released May 4th, 2024)
- New lexers:
* Janet (#2557)
* Lean 4 (#2618, #2626)
* Luau (#2605)
* Mojo (#2691, #2515)
* org-mode (#2628, #2636)
* Promela (#2620)
* Soong / ``Android.bp`` (#2659)
* Tact (#2571)
* Typst (#2596)
- Updated lexers:
* Awk: recognize ternary operator (#2687)
* Bash: add ``openrc`` alias (#2599, #2371)
* Coq: add keywords, lex more vernacular command arguments, produce
fewer tokens on heading comments (#2678)
* DNS zone files: Fix comment parsing (#2595)
* Hy: Support unicode literals (#1126)
* Inform6: Update to Inform 6.42 (#2644)
* lean: Fix name handling (#2614)
* Logtalk: add ``uninstantiation`` keyword and recognize
escape sequences (#2619)
* Macaulay2: Update to 1.23 (#2655)
* Python: fix highlighting of soft keywords before ``None``/``True``/``False``
* reStructuredText: use ``Token.Comment`` for comments instead of
``Comment.Preproc`` (#2598)
* Rust: highlight ``:``, ``::`` and ``->`` as ``Punctuation``
and whitespace as ``Whitespace``, instead of ``Text``
in both cases (#2631)
* Spice: Add keywords (#2621)
* SQL Explain: allow negative numbers (#2610)
* Swift: Support multiline strings (#2681)
* ThingsDB: add constants and new functions; support template
strings (#2624)
* UL4: support nested ``<?doc?>`` and ``<?note?>`` tags (#2597)
* VHDL: support multi-line comments of VHDL-2008 (#2622)
* Wikitext: Remove ``kk-*`` in ``variant_langs`` (#2647)
* Xtend: Add ``val`` and ``var`` (#2602)
- New styles:
* Coffee (#2609)
- Make background colors in the image formatter work with Pillow 10.0 (#2623)
- Require Python 3.8. As a result, the ``importlib-metadata`` package
is no longer needed for fast plugin discovery on Python 3.7.
The ``plugins`` extra (used as, e.g., ``pip install pygments[plugins]``)
is kept for backwards compatibility but now has no effect. (#2601)
- Require the ``url`` attribute for lexers inside Pygments, add
it to many lexers (#2588)
- Replace Pyflakes linter with Ruff (#2592)
- Add macOS CI (#2594)
- Built-in lexers now declare the version of Pygments in which they were
added in a required ``version_added`` lexer attribute, instead of a
``.. versionadded::`` directive in the docstring (#2589, #2634)
- The ``url`` attribute is now required for built-in lexers and
has been added to all existing lexers (#2588)
- The RTF formatter supports line number and line highlighting now (#1217, #2654)
- Add ``\sa0`` keyword in the RTF formatter (#1111, #2607)
- Register ``pycon`` as an alias for the Python console lexer (#2697)
- Add MIME-Type for ``DesktopLexer`` (#2613)
- Fix native style to meet WCAG AA guidelines (#2600)
- Fix typo in documentation (#2672)
- Use format strings consistently (#2661)
- Add ``__class_getitem__`` to ``Formatter`` to improve typing support (#2665)
py-pygments: updated to 2.17.2 Version 2.17.2 * Fix a packaging issue on macOS
py-pygments: update to 2.17.1.
Version 2.17.1
--------------
(released November 19, 2023)
- Updated lexers:
* TOML: Fix bug making lexing of single-quoted strings too eager
Version 2.17.0
--------------
(released November 18, 2023)
- New lexers:
* JSX (#2524, #709)
* Kusto (#2552)
* ldaprc (#2532)
* LDIF (#2489)
* PRQL (#2507, #2523, #2559)
* Visual Prolog and Visual Prolog Grammar (#2480)
* Vyper (#2531, #2579)
- Updated lexers:
* Cypher: fix comment matching, add missing keywords (#2504)
* Fortran: add ``elseif`` keyword (#2528)
* Lean: make it available as ``lean3``, in preparation for
a possible switch to ``lean`` highlighting as Lean 4 (#2546)
* JSON: add MIME types and file extensions for several line-delimited
JSON formats (#2490)
* Nix: many improvements (#2551, #1800)
* OCaml: Add ``and`` keyword, remove ``value`` from keywords (#2521)
* Python: add ``starlark`` and ``bazel`` aliases (#2517, #2516)
* Snowball: Treat ``len`` like ``size`` (#2508)
* Spice: add ``panic`` keyword and ``->`` operator (#2510)
* squid.conf: fix catastrophic backtracking (#2583)
* TOML: rewritten, with many fixes (#2576)
* Turtle: support blank nodes (#2581)
* Wikitext: fix erroneous highlighting of LanguageConverter markup
(#2493), add missing variant languages (#2494)
* CMake: support ``[=[ bracketed arguments ]=]``` (#2549)
- Fix ctags support and tests (#2487)
- Include ``Lexer.add_filter`` in the documentation (#2519)
- Add a ``Lean3Lexer`` alias (#2546)
- The ``pygments.styles`` module contains a new ``STYLES`` variable
with a dictionary of built-in styles. The old ``STYLE_MAP`` variable,
which uses a different format, is kept for backwards compatibility.
- On Windows, add a new installation extra (``windows-terminal``) which pulls in
dependencies for colored console output. See :doc:`cmdline` for more details.
(#2505)
- Support more file types in ``autopygmentize`` script (#2513)
- Change color of numbers in ``rrt`` style (#2526)
- Fix error when trying to look up plugin formatters by file extension
of the output format (#2563)
- Use Hatchling as a build backend instead of setuptools.
This change is transparent to most users. Distribution packagers
who build without build isolation need to add hatchling as a build
dependency and remove setuptools. People downloading source distributions
and wheels from PyPI directly should note that they now have ``pygments``
in their file names instead of ``Pygments``. (#2573)
- Improve the test framework to also check for lost tokens when processing the
snippets and example files (#2582.)
- Improve the *Dracula* style definition to make it easier to maintain (#2575)
python/wheel.mk: simplify a lot, and switch to 'installer' for installation This follows the recommended bootstrap method (flit_core, build, installer). However, installer installs different files than pip, so update PLISTs for all packages using wheel.mk and bump their PKGREVISIONs.
py-pygments: updated to 2.16.1
Version 2.16.1
--------------
- Fix ``native`` style missing from style list
Version 2.16.0
--------------
(released August 6th, 2023)
- New lexers:
* ASN.1
* Blueprint
* BQN
* DNS zone files
* GraphQL
* Linux desktop files (following the specification of the
Freedesktop group, formerly known as XDG)
* NVIDIA PTX
* OpenSCAD
* systemd
* TLS presentation language
* Verifpal
* YARA
- Updated lexers:
* ASC: Add ``application/pem-certificate-chain`` mimetype
* C/C++: Refine keyword lists
* Carbon: Fix long processing times on invalid input, fix number
lexing
* Elpi: Handle quotations
* Go: Support additional built-ins
* HTTP: Support empty headers
also recognize responses in ``analyse_text`` implementation
highlight URL encoded data
* Igor Pro: Update to Igor Pro 9
* lean: Recognize expressions nested within attributes
* Macaulay2: Update builtins
* Markdown: Allow extra characters after language name
in code blocks
* NestedText: Update to version 3
* scdoc: Improve language guessing implementation
* Spice: Update to latest version
* Transact SQL: Add Pre-sorted Group keyword
* Uxntal: Update for current runes
* Wikitext: Fix templates in wiki links; fix a language converter false
positive; add bold italic markup
- Add ``Generic.EmphStrong`` token for bold italic markup
- Add Lightbulb style
- Improve contrast in Monokai style
- Add documentation how to create terminal code highlighting commands
- Add support for loading TrueType fonts to the ``ImageFormatter``
py-pygments: updated to 2.15.1 Version 2.15.1 -------------- - Updated lexers: * Java properties: Fix catastrophic backtracking - Fix Python console traceback lexing being too strict and sometimes reordering output
py-pygments: updated to 2.15.0
Version 2.15.0
--------------
- Added lexers:
* Carbon
* Dax
* MediaWiki Wikitext
* PostgreSQL Explain
* WGSL (WebGPU Shading Language)
* X++
- Updated lexers:
* AMDGPU: Add support for ``scratch_`` instructions, the ``attr*.*`` argument,
as well as the ``off`` modifier
* APDL: Miscellaneous improvements
* bash/tcsh:
- Move ``break`` to keywords
- Improve bash math expansion lexing
* Chapel: Support attributes
* CMake: Implement bracket style comments
* CSS: Improve lexing of numbers inside function calls
* diff: Support normal diff syntax, as opposed to unified diff syntax
* GLSL, HLSL:
- Support line continuations in preprocessor code
- Improve preprocessor directive handling
* LilyPond: minor update of builtins
* PHP: support attributes
parameters
* Python:
- Add missing builtins
- Fix inconsistent lexing of ``None``
* Rebol/Red: Don't require script headers
* Spice: Update keywords
* SQL+Jinja (``analyse_text`` method): Fix catastrophic backtracking
* Terraform: Add ``hcl`` alias
- Declare support for Python 3.11 and drop support for Python 3.6
- Update ``native`` style to improve contrast
- Update `github-dark`` style to match latest Primer style
- Revert a change that made guessing lexers based on file names slower
on Python 3.10 and older
- Fix some places where a locale-dependent encoding could unintentionally
be used instead of UTF-8
- Fix Python traceback handling
- Groff formatter: sort color definitions for reproducibility
- Move project metadata to ``pyproject.toml``, remove ``setup.py``
and ``setup.cfg``
- The top-level ``Makefile`` has been removed. Instead, all shortcuts
for developing are now defined and run through tox. The ``doc`` folder
still contains a ``Makefile`` as an alternative to ``tox -e doc``.
py-pygments: updated to 2.14.0
Version 2.14.0
--------------
- Added lexers:
* Arturo
* GAP session
* Fift
* func
* Jsonnet
* Minecraft schema
* MIPS
* Phix
* Portugol
* TL-b
* World of Warcraft TOC format
* Wren
- Updated lexers:
* Abap: Update keywords
* Alloy: Update for Alloy 6
* C family (C, C++ and many others):
- Fix an issue where a chunk would be wrongly recognized as a function
definition due to braces in comments
- Improve parantheses handling for function definitions
* C#: Fix number and operator recognition
* CSound: Updated builtins
* F#: Add ``.fsx`` file extension
* gas (GNU assembler): recognize braces as punctuation
* HTTP: Add `CONNECT` keyword
* Inform 6: Fix lexing of properties and doubles
* INI: Allow comments that are not their own line
* Java properties: Fix issue with whitespace-delimited keys, support
comments starting with `!` and escapes, no longer support undocumented
`;` and `//` comments
* LilyPond: Improve heuristics, add ``\maxima`` duration
* LLVM: Add opaque pointer type
* Macaulay2: Update keywords
* Minecraft-related lexers (SNB and Minecraft function) moved to
``pygments.lexers.minecraft``
* Nim: General improvements
* Nix: Fix single quotes inside indented strings
* Objective J: Fix catastrophic backtracking
* NASM: Add support for SSE/AVX/AVX-512 registers as well as 'rel'
and 'abs' address operators
* Powershell:
- Add ``local:`` keyword
- Allow continuations without markers
* Solidity: Add boolean operators
* Spice: Add ``enum`` keyword and fix a bug regarding binary,
hexadecimal and octal number tokens
* YAML: Accept colons in key names
- Fix `make mapfiles` when Pygments is not installed in editable mode
- Support more filetypes and compression types in `autopygmentize`
- Merge consecutive tokens in Autohotkey, Clay
- Add ``.nasm`` as a recognized file type for NASM
- Add ``*Spec.hs`` as a recognized file type for ``HSpec``
- Add ``*.pyi`` (for typing stub files) as a recognized file type for
Python
- The HTML lexer no longer emits empty spans for whitespace
- Fix ``IRCFormatter`` inserting linenumbers incorrectly
Fix _PYTHON_VERSION check to avoid error
Replace .if ${_PYTHON_VERSION} < 38 with .if ${_PYTHON_VERSION} == 37
as otherwise will fail when ${_PYTHON_VERSION} is "none".
Triggered for "make clean-depends" for a package with
PYTHON_VERSIONS_ACCEPTED=27 which depends on textproc/py-pygments
Revert previous - this seems to be only papering over a not yet discovered bug somewhere else that (sometimes) makes _PYTHON_VERSION non-numerical.
Comment out broken comparision .if ${_PYTHON_VERSION} < 38
make[7]: "/usr/pkgsrc/textproc/py-pygments/Makefile" line 22: String comparison operator must be either == or !=
py-pygments: updated to 2.13.0
Version 2.13.0
--------------
- Added lexers:
* COMAL-80
* JMESPath
* Sql+Jinja
- Updated lexers:
* Ada: support Ada 2022
because it disturbs lexing of aspects
* Agda: allow straight quotes in module names
* C family (C, C++ and many others): allow comments between
elements of function headers, e.g. between the arguments and
the opening brace for the body
* C++: Resolve several cases of ``Error`` tokens
* Coq: add some common keywords, improve recognition of ``Set``
and qualified identifiers
* F*: Allow C-style comments anywhere in a line
* Fortran: fix catastrophic backtracking with backslashes in strings
* Go: add support for generics
* Inform: update for version 6.40
* Isabelle: recognize cartouches
* Java: support multiline strings aka. text blocks
* Kotlin: add ``value`` modifier
* LilyPond: add some missing builtins
* Macaulay2: update builtins
* Matlab session: fix traceback when a line continuation ellipsis
appears in the output
* .NET: add aliases for LibreOffice Basic, OpenOfficeBasic and
StarOffice Basic
* Nim: use ``Name.Builtin`` instead of ``Keyword.Type``
* PHP: fix `\"$var\"` inside strings
* Python: only recognize ``\N``, ``\u`` and ``\U`` escape sequences
in string literals, but not in bytes literals where they are
not supported
* Tcl: support ``${name}`` variables
* Terraform: accept leading whitespace for `<<` heredoc
delimiters
* Teraterm: Various improvements
* Spice: add support for the recently added features including more
builtin functions and bin, oct, hex number formats
- Added styles:
* GitHub dark
* StarOffice
* Nord (`nord` and `nord-darker`)
- Pygments now tries to use the ``importlib.metadata`` module to
discover plugins instead of the slower ``pkg_resources``
particular, this largely speeds up the ``pygmentize`` script when
the lexer is not specified.
``importlib.metadata`` is only available in the Python standard
library since Python 3.8. For older versions, there exists an
``importlib_metadata`` backport on PyPI. For this reason, Pygments
now defines a packaging extra ``plugins``, which adds a requirement
on ``importlib_metadata`` if the Python version is older than
3.8. Thus, in order to install Pygments with optimal plugin
support even for old Python versions, you should do::
pip install pygments[plugins]
Pygments still falls back on ``pkg_resources`` if neither
``importlib.metadata`` nor ``importlib_metadata`` is found, but it
will be slower.
- Silently ignore ``BrokenPipeError`` in the command-line interface
- The ``HtmlFormatter`` now uses the ``linespans`` attribute for
``anchorlinenos`` if the ``lineanchors`` attribute is unset
- The ``highlight``, ``lex`` and ``format`` functions no longer
wrongly report "argument must be a lexer/formatter instance, not a
class" in some cases where this is not the actual problem
- Fix warnings in doc build
- The ``codetagify`` filter now recognizes ``FIXME`` tags by default
- The ``pygmentize`` command now recognizes if the ``COLORTERM``
environment variable is set to a value indicating that true-color
support is available. In that case, it uses the ``TerminalTrueColorFormatter``
by default
- Remove redundant caches for filename patterns
- Use new non-deprecated Pillow API for text bounding box in ``ImageFormatter``
- Remove ``default_style``
- Stop treating ``DeprecationWarnings`` as errors in the unit tests
py-pygments: updated to 2.12.0
Version 2.12.0
--------------
- Added lexers:
* Cplint
* Macaulay2
* Minecraft
* Qlik
* ``UnixConfigLexer`` for "colon-separated" config files, like ``/etc/passwd``
- Updated lexers:
* Agda: Update keyword list
* C family: Fix identifiers after ``case`` statements
* Clojure: Highlight ratios
* Csound: Update to 6.17
* CSS: Update the list of properties
* Elpi:
- Fix catastrophic backtracking
- Fix handling of ``->``
* Futhark: Add missing tokens
* Gherkin: Add ``But``
* Inform6: Update to 6.36
* JSON: Support C comments in JSON
* LilyPond:
- Fix incorrect lexing of names containing a built-in
- Fix properties containing dashes
* PHP: Update builtin function and keyword list
* Scheme: Various improvements
* Spice: Update the keyword list, add new types
* Terraform:
- Support non-idiomatic comments
- Fix class name lexing
- Add ``plugins`` argument to ``get_all_lexers()``.
- Bump minimal Python version to 3.6
- Fix multiple lexers marking whitespace as ``Text``
- Remove various redundant uses of ``re.UNICODE``
- Associate ``.resource`` with the Robot framework
- Associate ``.cljc`` with Clojure
- Associate ``.tpp`` with C++
- Remove traces of Python 2 from the documentation
- The ``native`` style was updated to meet the WCAG AAA contrast guidelines
- Fix various typos
- Fix ``Groff`` formatter not inheriting token styles correctly
- Various improvements to the CI
- The Ada lexer has been moved to a separate file
- 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
py-pygments: updated to 2.11.2 Version 2.11.2 -------------- - Updated lexers: * C-family: Fix incorrect handling of labels * Java: Fixed an issue with ``record`` keywords result in ``Error`` tokens in some cases - Fix links to line numbers not working correctly - Remove ``underline`` from ``Whitespace`` style in the ``Tango`` theme - Fix ``IRC`` and ``Terminal256`` formatters not backtracking correctly for custom token types, resulting in some unstyled tokens Version 2.11.1 -------------- - Updated lexers: * C-family: Handle return types with multiple tokens (e.g. ``unsigned int``) * JSON: Fix a regression which caused whitespace before ``:`` to result in ``Error`` tokens * SPICE: Various improvements
python: egg.mk: add USE_PKG_RESOURCES flag This flag should be set for packages that import pkg_resources and thus need setuptools after the build step. Set this flag for packages that need it and bump PKGREVISION.
*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS
py-pygments: updated to 2.11.0
Version 2.11.0
--------------
- Added lexers:
* BDD
* Elpi
* LilyPond
* Maxima
* Rita
* Savi
* Sed
* Sophia contracts
* Spice
* ``.SRCINFO``
- Updated lexers:
* ABNF: Allow one-character rules
* Assembly: Fix incorrect token endings
* Bibtex: Distinguish between ``comment`` and ``commentary``
* C family: Support unicode identifiers
* CDDL: Fix slow lexing speed
* Debian control: Add missing fields
* Devicetree: Recognize hexadecimal addresses for nodes
* GDScript: Add ``void`` data type
* GSQL
- Fix comment handling
- Fix catastrophic backtracking
* HTML, XML: Improve comment handling
* Java: Add ``yield``
* Makefiles
* objdump-nasm: Improve handling of ``--no-show-raw-insn`` dumps
* Prolog: Support escaped ``\`` inside quoted strings
* Python:
- Support ``~`` in tracebacks
- Support the pattern matching keywords
* RobotFramework: Improve empty brace handling
* Terraform
- Add the 'set' type
- Support heredocs
- Added styles:
* Dracula
* Friendly Grayscale
* LilyPond
* One-Dark
.. note::
All of the new styles unfortunately do not conform to WCAG recommendations.
- 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.
- Clean up unused imports
- Fix multiple lexers producing repeated single-character tokens
- Fix multiple lexers marking whitespace as ``Text``
- Remove duplicated assignments in the Paraiso style
- ``pygmentize`` supports JSON output for the various list functions now, making it easier to consume them from scripts.
- Use the ``shell`` lexer for ``kshrc`` files
- Use the ``ruby`` lexer for ``Vagrantfile`` files
- Use the C lexer for ``.xbm`` and ``.xpm`` files
- Add a ``groff`` formatter
- Update documentation
- Line anchors now link to themselves
- Add official support for Python 3.10
- Fix several missing colors in dark styles: Gruvbox dark, Monokai, Rrt, Sas, Strata dark
- Associate more file types with ``man`` pages
- The ``HtmlFormatter`` can now emit tooltips for each token to ease debugging of lexers
- Add ``f90`` as an alias for ``fortran``
py-pygments: updated to 2.10.0
Version 2.10.0
- Added lexers:
* ASC armored files
* GSQL
* Javascript REPL
* procfile
* Smithy
- Updated lexers:
* C-family: Fix preprocessor token issues
* C#
* CSound
* Fennel
* JavaScript
* LLVM
* Rust
- Fix lexing of "break" and "continue"
- Improve attribute handling
* Scala: Add support for the ``\`` operator
* Swift
* Tcl: Allow ``,`` and ``@`` in strings
- Fix assert statements in TNT lexer.
- Token types across all lexers have been unified (using the most common token
type name)
- Improve Jasmin min score analysis
- Add new alias for Go files
- Fix multi-line console highlighting
- Add a new trivial lexer which outputs everything as `Text.Generic.Output`
- Use the ``.ini`` lexer for ``systemd`` files
- Fix a ``FutureWarning`` related to ``words()``
- ``pwsh`` is now recognized as an alias for PowerShell
py-pygments: updated to 2.9.0
Version 2.9.0
-------------
- Added lexers:
* APDL, gcode
* Kuin
* NestedText
* OMG IDL
* TEAL
* ThingsDB
* WebAssembly
- Updated lexers:
* AMDGPU
* APL
* C/C++: Improve namespace handling
* Chapel
* Coq
* Cython
* Groovy
* JavaScript
* Julia
* Octave: Allow multiline and block-percent comments
* PowerShell: Improve lexing of ``:``
* PromQL
* Python: Improve float parsing
* Rust
* Scala: Rewrite to support Scala3
* Swift
* Terraform: Support 0.14 syntax
* Velocity: Detect multi-line patterns
- Add Pango formatter
- Autopygmentize uses ``file`` first instead of ``pygments -N``
- Fix links
- Fix issue with LaTeX formatter and ``minted``
- Improve alias order
- Improve line number colors
- Fix CTag related issue
- Recognize ``.leex`` as Elixir templates
- Updated `filename` handling in HTML formatter if `linenos='table'`
* Previously the filename would be emitted within the `<td>` holding the
code, but outside the `<pre>`. This would invariably break the alignment
with line numbers.
* Now if `filename` is specified, a separate `<tr>` is emitted before the
table content which contains a single `<th>` with `colspan=2` so it
spans both the line number and code columns. The filename is still
within `<span class="filename">...</span>` so any existing styles
should still apply, although the CSS path may need to change.
* For an example of the new output format see
`table_cls_step_1_start_1_special_0_noanchor_filename.html`
in the `tests/html_linenos_expected_output/` directory.
* For more details and discussion see the issue
https://github.com/pygments/pygments/issues/1757
- Added styles:
* Gruvbox light+dark
py-pygments: updated to 2.8.1
Version 2.8.1
-------------
(released March 7, 2021)
- Fix issue with LaTeX formatter and ``minted``
Version 2.8.0
-------------
(released February 14, 2021)
- Added lexers:
* AMDGPU
* CDDL
* Futhark
* Graphviz/DOT
- Updated lexers:
* AutoIt: Support single quoted strings
* C/C++ & related: Fix mishandling '*/'
* Cocoa: Add builtin types
* Console
* Eiffel: Fix performance issues
* Fortran: Improve combined keyword detection
* J: Fix operator ``?`` lexing
* JavaScript/TypeScript: Fix escapes in backtick strings
* Kotlin: Improve string interpolation, modifier keyword handling, and various small issues
* LESS: Support single-line comments
* Matlab:
- Add support for class properties
- Update builtin functions
- Various cleanups
* Python: Improve handling of raw f-strings
* Ruby: Better method name handling
* Stata: Updated keywords
- Added styles:
* Material
* Zenburn
- The `pygmentize` script now uses `argparse`, all options should work
as before
- Add `pygmentize -C` option to guess a lexer from content
- With this release, Pygments moves to a new internal testing system
See ``Contributing.md`` for details. The main advantage of this new change
is a much better test coverage of all existing example lexers. It also makes
it much easier to add new test snippets.
- Make guessing prefer Python 3 lexer
- Do not guess MIME or SQL without reason
- Changed setuptools to use a declarative config through ``setup.cfg``.
Building Pygments now requires setuptools 39.2+.
- Add markdown to MarkdownLexer aliases
- Change line number handling
* In ``<table>`` based output, the ``td.linenos`` element will have either a
``normal`` or ``special`` class attached. Previously, only ``special`` line
numbers got a class. This prevents styles from getting applied twice -
once via ``<pre>``, once via ``<span class="special">``. This also means
that ``td.linenos pre`` is no longer styled, instead, use
``td.linenos .normal`` and ``td.linenos .special``.
* In the "inline" style, the DOM element order was changed. The line number
is added first, then the line is wrapped is wrapped by the highlighter.
This fixes lines not being fully highlighted.
* The visual output for inline and non-inline line numbers & highlighting,
as well as class-based and inline styling is now consistent.
* Line number styles are set to ``background-color: transparent`` and
``color: inherit`` by default. This works much better with dark styles
which don't have colors set for line numbers.
- Remove "raw" alias from RawTokenLexer, so that it cannot be
selected by alias.
- Fix RawTokenLexer to work in Python 3 and handle exceptions.
- Add prompt colors to the Solarized theme
- Image formatter supports background colors now
- Add support for anchors in conjunction with inline line numbers
- Modernize the codebase using ``pyupgrade``
- Add support for line numbers to the ``terminal256`` formatter
- Improve ``analyze_text`` logic for ``ECL``
- Improve ``analyze_text`` logic for ``CBM Basic V2``
- Improve LaTeX formatter
Version 2.7.4
-------------
(released January 12, 2021)
- Updated lexers:
- Apache configurations: Improve handling of malformed tags
- CSS: Add support for variables
- Crystal
- Coq
- Fortran: Add missing keywords
- Ini
- JavaScript and variants
- Markdown
- Shell
- Lex trailing whitespace as part of the prompt
- Add missing ``in`` keyword
- SQL - Fix keywords
- Typescript: Fix incorrect punctuation handling
- Fix infinite loop in SML lexer
- Fix backtracking string regexes in JavaScript/TypeScript, Modula2
and many other lexers
- Limit recursion with nesting Ruby heredocs
- Fix a few inefficient regexes for guessing lexers
- Fix the raw token lexer handling of Unicode
- Revert a private API change in the HTML formatter
please note that private APIs remain subject to change!
- Fix several exponential/cubic-complexity regexes found by
Ben Caller/Doyensec
- Fix incorrect MATLAB example
Thanks to Google's OSS-Fuzz project for finding many of these bugs.
Version 2.7.3
-------------
(released December 6, 2020)
- Updated lexers:
* Ada
* HTML
* Java
* JavaScript
* JSON
* Lean
* LLVM
* Mason
* MySQL
* Rust
* Turtle
- Deprecated JsonBareObjectLexer, which is now identical to JsonLexer
- The ``ImgFormatter`` now calculates the exact character width, which fixes some issues with overlapping text
- Documentation fixes
- Fixed duplicated Juttle language alias
- Added support for Kotlin scripts
- Removed CSS rule which forced margin to 0
Version 2.7.2
-------------
(released October 24, 2020)
- Updated lexers:
* Latex
* LLVM
* SPARQL
- Fix Python console/traceback lexer problems with custom exceptions without messages
- Allow loading ttc fonts on Mac/image formatter
- Improve ``analyze_text`` across a variety of lexers
- Remove CSS rule which forced the vertical padding to 0 for line numbers
- Fix ``TNTLexer`` crashing on unexpected EOL
- ``regexlint`` can be now run locally as part of ``tox`` tests
- Fix typos
- Add Python 3.9 as a supported version
Version 2.7.1
-------------
(released September 16, 2020)
- Fixed a regression in the JSON lexer
Version 2.7.0
-------------
(released September 12, 2020)
- Added lexers:
* Arrow
* BARE
* Devicetree
* F*
* GDScript
* Pointless
* PromQL
* PsySH
* Singularity
* TiddlyWiki5
* TNT
* YANG
- Updated lexers:
* APL
* C++
* Chapel
* CMake
* CSound
* Cython
* Dart
* Fennel
* Fortran
* GAS
* HTTP
* Inform 6
* Javascript
* JSON
* Lean
* Matlab
* Markdown
* MySQL
* NASM
* Nim
* PostgreSQL
* PowerShell
* Protobuf
* Robot
* SQL
* SystemVerilog
* TeraTerm
* XML
- Added a new filter for math symbols
- The Kconfig lexer will match Kconfig derivative names now
- Improved HTML formatter output
- ``.markdown`` is now recognized as an extension for Markdown files
- Fixed line number colors for Solarized
- Improvements to exception handling
- Improvements to tests
- Various code cleanups
Version 2.6.1
-------------
(released March 8, 2020)
- This release fixes a packaging issue. No functional changes.
Version 2.6
-----------
(released March 8, 2020)
- Running Pygments on Python 2.x is no longer supported.
(The Python 2 lexer still exists.)
- Added lexers:
* Linux kernel logs
* LLVM MIR
* MiniScript
* Mosel
* Parsing Expression Grammar
* ReasonML
* Ride
* Sieve
* USD
* WebIDL
- Updated lexers:
* Apache2
* Chapel
* CSound
* D
* Haskell
* Idris
* Perl6/Raku lexer
* Python3
* Rust: Updated lexer to cover more builtins (mostly macros) and miscellaneous
new syntax
* SQL: Add temporal support keywords
- The 256-color/true-color terminal formatters now support the italic attribute
in styles
- Support HTTP 2/3 header
- Support missing reason in HTTP header
- Boogie/Silver: support line continuations and triggers, move contract keywords
to separate category
- GAS: support C-style comments
- Fix names in S lexer
- Fix numeric literals in Ada
- Recognize ``.mjs`` files as Javascript
- Recognize ``.eex`` files as Elixir
- Fix ``re.MULTILINE`` usage
- Recognize ``pipenv`` and ``poetry`` dependency & lock files
- Improve font search on Windows
- Remove unused script block
pytest from versioned depends
py-pygments: updated to 2.5.2 Version 2.5.2 Fix incompatibility with some setuptools versions Fix lexing of ReST field lists Fix lexing of Matlab keywords as field names Recognize double-quoted strings in Matlab Avoid slow backtracking in Vim lexer Fix Scala highlighting of types Highlight field lists more consistently in ReST Fix highlighting Matlab keywords in field names Recognize Matlab double quoted strings Add some Terraform keywords Update Modelica lexer to 3.4 Update Crystal examples Version 2.5.1 This release fixes a packaging issue. No functional changes. Version 2.5.0 Added lexers: Email Erlang, Elixir shells Notmuch Scdoc Solidity Zeek (new name for Bro) Zig Updated lexers: Apache2 Configuration Bash sessions CSound Dart Dockerfile Emacs Lisp Handlebars Java Logtalk Matlab Praat Python3 Ruby YAML Velocity Added styles: Inkpot The PythonLexer class is now an alias for the former Python3Lexer. The old PythonLexer is available as Python2Lexer. Same change has been done for the PythonTracebackLexer. The python3 option for the PythonConsoleLexer is now true by default. Bump NasmLexer priority over TasmLexer for .asm files Default font in the ImageFormatter has been updated Test suite switched to py.test, removed nose dependency Reduce TeraTerm lexer score – it used to match nearly all languages Treat Skylark/Starlark files as Python files Image formatter: actually respect line_number_separator option Add LICENSE file to wheel builds Agda: fix lambda highlighting Dart: support @ annotations Dockerfile: accept FROM ... AS syntax Emacs Lisp: add more string functions GAS: accept registers in directive arguments Java: make structural punctuation (braces, parens, colon, comma) Punctuation, not Operator Java: support var contextual keyword Matlab: Fix recognition of function keyword Python: recognize .jy filenames Python: recognize f string prefix Ruby: support squiggly heredocs Shell sessions: recognize Virtualenv prompt Velocity: support silent reference syntax
all: migrate homepages from http to https pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually.
py-pygments: updated to 2.4.2 Version 2.4.2 - Fix encoding error when guessing lexer with given ``encoding`` option Version 2.4.1 - Updated lexers: * Coq * MSDOS Session * NASM * Objective-C * Prolog * TypeScript - Support CSS variables in stylesheets - Fix F# lexer name - Fix ``TerminalFormatter`` using bold for bright text Version 2.4.0 - Added lexers: * Augeas * BBC Basic * Boa * Charm++ CI * DASM16 * FloScript * FreeFem++ * Hspec * Pony * SGF * Slash * Slurm * Tera Term Language * TOML * Unicon * VBScript - Updated lexers: * Apache2 * Cypher * LLVM * Makefiles * PHP * Rust * SQL * Stan * Stata * Terraform * YAML - Add solarized style - Add support for Markdown reference-style links - Add license information to generated HTML/CSS files - Change ANSI color names - Fix catastrophic backtracking in the bash lexer - Fix documentation failing to build using Sphinx 2.0 - Fix incorrect links in the Lisp and R lexer documentation - Fix rare unicode errors on Python 2.7 - Fix lexers popping from an empty stack - TypoScript uses ``.typoscript`` now - Updated Trove classifiers and ``pip`` requirements
py-pygments: updated to 2.3.1 Version 2.3.1 - Updated lexers: * ASM * Chapel * Clean * CSound * Elm * Fortran * GLSL * Haskell * Hy * Igor Pro * PowerShell * Python * SLexer * YAML - Fix invalid string escape sequences - Fix FutureWarning introduced by regex changes in Python 3.7 Version 2.3.0 - Added lexers: * Fennel * HLSL - Updated lexers: * Dockerfile - Minimum Python versions changed to 2.7 and 3.5 - Added support for Python 3.7 generator changes - Fix incorrect token type in SCSS for single-quote strings - Use terminal256 formatter if TERM contains 256 - Fix incorrect handling of GitHub style fences in Markdown - Fix %a not being highlighted in Python3 strings
Version 2.2.0 - Added lexers: * AMPL * TypoScript * Varnish config * Clean * WDiff * Flatline * Silver * HSAIL * JSGF * NCAR command language * Extempore * Cap'n Proto * Whiley * Monte * Crystal * Snowball * CapDL * NuSMV * SAS, Stata - Added the ability to load lexer and formatter classes directly from files with the `-x` command line option and the `lexers.load_lexer_from_file()` and `formatters.load_formatter_from_file()` functions. - Added `lexers.find_lexer_class_by_name()`. - Added new token types and lexing for magic methods and variables in Python and PHP. - Added a new token type for string affixes and lexing for them in Python, C++ and Postgresql lexers. - Added a new token type for heredoc (and similar) string delimiters and lexing for them in C++, Perl, PHP, Postgresql and Ruby lexers. - Styles can now define colors with ANSI colors for use in the 256-color terminal formatter. - Improved the CSS lexer. - Added "Rainbow Dash" style. - Delay loading `pkg_resources`, which takes a long while to import.
Use "${MV} || ${TRUE}" and "${RM} -f" consistently in post-install targets.
Version 2.1.3 - Fixed regression in Bash lexer
Remove unnecessary PLIST_SUBST and FILES_SUBST that are now provided by the infrastructure. Mark a couple more packages as not ready for python-3.x.
Switch to MASTER_SITES_PYPI.
Pullup ticket #4900 - requested by wiz
textproc/py-pygments: security fix
Revisions pulled up:
- textproc/py-pygments/Makefile 1.21-1.22
- textproc/py-pygments/distinfo 1.13
- textproc/py-pygments/patches/patch-img.py 1.1
---
Module Name: pkgsrc
Committed By: wiz
Date: Sun Jan 17 14:22:11 UTC 2016
Modified Files:
pkgsrc/textproc/py-pygments: Makefile distinfo
Added Files:
pkgsrc/textproc/py-pygments/patches: patch-img.py
Log Message:
Fix for code-injection vulnerability (CVE-2015-8557) from upstream.
From Rin Okuyama in PR 50661.
---
Module Name: pkgsrc
Committed By: wiz
Date: Sun Jan 17 16:03:13 UTC 2016
Modified Files:
pkgsrc/textproc/py-pygments: Makefile
Log Message:
Comment out py-sphinx build dependency since it introduces a cycle.
Comment out py-sphinx build dependency since it introduces a cycle.
Fix for code-injection vulnerability (CVE-2015-8557) from upstream. From Rin Okuyama in PR 50661.
Changes 2.0.2: * Fix Python tracebacks getting duplicated in the console lexer * Backquote-delimited identifiers are now recognized in F#
Set MAINTAINER to pkgsrc-users.
PYVERSSUFFIX also must be in FILES_SUBST, for ALTERNATIVES.
Rename bin/pygmentize to pygmentize${PYVERSSUFFIX} to fix conflict with
other python versions of the same package. Add ALTERNATIVES file.
Bump PKGREVISION.
Update to 2.0.1: Version 2.0.1 ------------- (released Nov 10, 2014) - Fix an encoding issue when using ``pygmentize`` with the ``-o`` option.
Update to 2.0: Version 2.0 ----------- (released Nov 9, 2014) - Default lexer encoding is now "guess", i.e. UTF-8 / Locale / Latin1 is tried in that order. - Major update to Swift lexer (pull request #410). - Multiple fixes to lexer guessing in conflicting cases: * recognize HTML5 by doctype * recognize XML by XML declaration * don't recognize C/C++ as SystemVerilog - Simplified regexes and builtin lists. Version 2.0rc1 -------------- (released Oct 16, 2014) - Dropped Python 2.4 and 2.5 compatibility. This is in favor of single-source compatibility between Python 2.6, 2.7 and 3.3+. - New website and documentation based on Sphinx (finally!) - Lexers added: * APL (#969) * Agda and Literate Agda (pull request #203) * Alloy (pull request #355) * AmbientTalk * BlitzBasic (pull request #197) * ChaiScript (pull request #24) * Chapel (pull request #256) * Cirru (pull request #275) * Clay (pull request #184) * ColdFusion CFC (pull request #283) * Cryptol and Literate Cryptol (pull request #344) * Cypher (pull request #257) * Docker config files * EBNF (pull request #193) * Eiffel (pull request #273) * GAP (pull request #311) * Golo (pull request #309) * Handlebars (pull request #186) * Hy (pull request #238) * Idris and Literate Idris (pull request #210) * Igor Pro (pull request #172) * Inform 6/7 (pull request #281) * Intel objdump (pull request #279) * Isabelle (pull request #386) * Jasmin (pull request #349) * JSON-LD (pull request #289) * Kal (pull request #233) * Lean (pull request #399) * LSL (pull request #296) * Limbo (pull request #291) * Liquid (#977) * MQL (pull request #285) * MaskJS (pull request #280) * Mozilla preprocessors * Mathematica (pull request #245) * NesC (pull request #166) * Nit (pull request #375) * Nix (pull request #267) * Pan * Pawn (pull request #211) * Perl 6 (pull request #181) * Pig (pull request #304) * Pike (pull request #237) * QBasic (pull request #182) * Red (pull request #341) * ResourceBundle (#1038) * Rexx (pull request #199) * Rql (pull request #251) * Rsl * SPARQL (pull request #78) * Slim (pull request #366) * Swift (pull request #371) * Swig (pull request #168) * TADS 3 (pull request #407) * Todo.txt todo lists * Twig (pull request #404) - Added a helper to "optimize" regular expressions that match one of many literal words; this can save 20% and more lexing time with lexers that highlight many keywords or builtins. - New styles: "xcode" and "igor", similar to the default highlighting of the respective IDEs. - The command-line "pygmentize" tool now tries a little harder to find the correct encoding for files and the terminal (#979). - Added "inencoding" option for lexers to override "encoding" analogous to "outencoding" (#800). - Added line-by-line "streaming" mode for pygmentize with the "-s" option. (pull request #165) Only fully works for lexers that have no constructs spanning lines! - Added an "envname" option to the LaTeX formatter to select a replacement verbatim environment (pull request #235). - Updated the Makefile lexer to yield a little more useful highlighting. - Lexer aliases passed to ``get_lexer_by_name()`` are now case-insensitive. - File name matching in lexers and formatters will now use a regex cache for speed (pull request #205). - Pygments will now recognize "vim" modelines when guessing the lexer for a file based on content (pull request #118). - Major restructure of the ``pygments.lexers`` module namespace. There are now many more modules with less lexers per module. Old modules are still around and re-export the lexers they previously contained. - The NameHighlightFilter now works with any Name.* token type (#790). - Python 3 lexer: add new exceptions from PEP 3151. - Opa lexer: add new keywords (pull request #170). - Julia lexer: add keywords and underscore-separated number literals (pull request #176). - Lasso lexer: fix method highlighting, update builtins. Fix guessing so that plain XML isn't always taken as Lasso (pull request #163). - Objective C/C++ lexers: allow "@" prefixing any expression (#871). - Ruby lexer: fix lexing of Name::Space tokens (#860) and of symbols in hashes (#873). - Stan lexer: update for version 2.4.0 of the language (pull request #162, PR#255, PR#377). - JavaScript lexer: add the "yield" keyword (pull request #196). - HTTP lexer: support for PATCH method (pull request #190). - Koka lexer: update to newest language spec (pull request #201). - Haxe lexer: rewrite and support for Haxe 3 (pull request #174). - Prolog lexer: add different kinds of numeric literals (#864). - F# lexer: rewrite with newest spec for F# 3.0 (#842), fix a bug with dotted chains (#948). - Kotlin lexer: general update (pull request #271). - Rebol lexer: fix comment detection and analyse_text (pull request #261). - LLVM lexer: update keywords to v3.4 (pull request #258). - PHP lexer: add new keywords and binary literals (pull request #222). - external/markdown-processor.py updated to newest python-markdown (pull request #221). - CSS lexer: some highlighting order fixes (pull request #231). - Ceylon lexer: fix parsing of nested multiline comments (#915). - C family lexers: fix parsing of indented preprocessor directives (#944). - Rust lexer: update to 0.9 language version (pull request #270, PR#388). - Elixir lexer: update to 0.15 language version (pull request #392). - Fix swallowing incomplete tracebacks in Python console lexer (#874).
Mark packages as not ready for python-3.x where applicable; either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary.
Update Pygments to 1.6. Version 1.6 ----------- (released Feb 3, 2013) - Lexers added: * Dylan console (PR#149) * Logos (PR#150) * Shell sessions (PR#158) - Fix guessed lexers not receiving lexer options (#838). - Fix unquoted HTML attribute lexing in Opa (#841). - Fixes to the Dart lexer (PR#160). Version 1.6rc1 -------------- (released Jan 9, 2013) - Lexers added: * AspectJ (PR#90) * AutoIt (PR#122) * BUGS-like languages (PR#89) * Ceylon (PR#86) * Croc (new name for MiniD) * CUDA (PR#75) * Dg (PR#116) * IDL (PR#115) * Jags (PR#89) * Julia (PR#61) * Kconfig (#711) * Lasso (PR#95, PR#113) * LiveScript (PR#84) * Monkey (PR#117) * Mscgen (PR#80) * NSIS scripts (PR#136) * OpenCOBOL (PR#72) * QML (PR#123) * Puppet (PR#133) * Racket (PR#94) * Rdoc (PR#99) * Robot Framework (PR#137) * RPM spec files (PR#124) * Rust (PR#67) * Smali (Dalvik assembly) * SourcePawn (PR#39) * Stan (PR#89) * Treetop (PR#125) * TypeScript (PR#114) * VGL (PR#12) * Visual FoxPro (#762) * Windows Registry (#819) * Xtend (PR#68) - The HTML formatter now supports linking to tags using CTags files, when the python-ctags package is installed (PR#87). - The HTML formatter now has a "linespans" option that wraps every line in a <span> tag with a specific id (PR#82). - When deriving a lexer from another lexer with token definitions, definitions for states not in the child lexer are now inherited. If you override a state in the child lexer, an "inherit" keyword has been added to insert the base state at that position (PR#141). - The C family lexers now inherit token definitions from a common base class, removing code duplication (PR#141). - Use "colorama" on Windows for console color output (PR#142). - Fix Template Haskell highlighting (PR#63). - Fix some S/R lexer errors (PR#91). - Fix a bug in the Prolog lexer with names that start with 'is' (#810). - Rewrite Dylan lexer, add Dylan LID lexer (PR#147). - Add a Java quickstart document (PR#146). - Add a "external/autopygmentize" file that can be used as .lessfilter (#802).
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Allow python-3.x.
update to 1.5 changes: -many more lexers -bugfixes
No compiler is requilred.
Update Pygments to 1.4. While here, add PKG_RUN_TEST support. Version 1.4 ----------- (codename Unschärfe, released Jan 03, 2010) - Lexers added: * Factor (#520) * PostScript (#486) * Verilog (#491) * BlitzMax Basic (#478) * Ioke (#465) * Java properties, split out of the INI lexer (#445) * Scss (#509) * Duel/JBST * XQuery (#617) * Mason (#615) * GoodData (#609) * SSP (#473) * Autohotkey (#417) * Google Protocol Buffers * Hybris (#506) - Do not fail in analyse_text methods (#618). - Performance improvements in the HTML formatter (#523). - With the ``noclasses`` option in the HTML formatter, some styles present in the stylesheet were not added as inline styles. - Four fixes to the Lua lexer (#480, #481, #482, #497). - More context-sensitive Gherkin lexer with support for more i18n translations. - Support new OO keywords in Matlab lexer (#521). - Small fix in the CoffeeScript lexer (#519). - A bugfix for backslashes in ocaml strings (#499). - Fix unicode/raw docstrings in the Python lexer (#489). - Allow PIL to work without PIL.pth (#502). - Allow seconds as a unit in CSS (#496). - Support ``application/javascript`` as a JavaScript mime type (#504). - Support `Offload <http://offload.codeplay.com>`_ C++ Extensions as keywords in the C++ lexer (#484). - Escape more characters in LaTeX output (#505). - Update Haml/Sass lexers to version 3 (#509). - Small PHP lexer string escaping fix (#515). - Support comments before preprocessor directives, and unsigned/ long long literals in C/C++ (#613, #616). - Support line continuations in the INI lexer (#494). - Fix lexing of Dylan string and char literals (#628). - Fix class/procedure name highlighting in VB.NET lexer (#624).
Update pygments to 1.3.1. While here, fixes(?) LICENSE from modified-bsd to 2-clause-bsd. Version 1.3.1 ------------- (bugfix release, released Mar 05, 2010) - The ``pygmentize`` script was missing from the distribution. Version 1.3 ----------- (codename Schneeglöckchen, released Mar 01, 2010) - Added the ``ensurenl`` lexer option, which can be used to suppress the automatic addition of a newline to the lexer input. - Lexers added: * Ada * Coldfusion * Modula-2 * haXe * R console * Objective-J * Haml and Sass * CoffeeScript - Enhanced reStructuredText highlighting. - Added support for PHP 5.3 namespaces in the PHP lexer. - Added a bash completion script for `pygmentize`, to the external/ directory (#466). - Fixed a bug in `do_insertions()` used for multi-lexer languages. - Fixed a Ruby regex highlighting bug (#476). - Fixed regex highlighting bugs in Perl lexer (#258). - Add small enhancements to the C lexer (#467) and Bash lexer (#469). - Small fixes for the Tcl, Debian control file, Nginx config, Smalltalk, Objective-C, Clojure, Lua lexers. - Gherkin lexer: Fixed single apostrophe bug and added new i18n keywords.
Update to Pygments 1.2.2: - Various bugfixes and improvements to the lexers - New lexers for Antlr/Ragel, Asymptote, Ba(sh), Erlang shell, Go, Gherkin, GLSL, Prolog, Evoque, Modelica, Rebol, MXML, Cython, ABAP, ASP.net, Vala, Newspeak, CMake and OOC - New style: Monokai
Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT block). Uncomment some commented out LICENSE lines while here.
Update Pygments to 1.0.
While here, set LICENSE.
Version 1.0
-----------
(codename Dreiundzwanzig, released Nov 23, 2008)
- Don't use join(splitlines()) when converting newlines to ``\n``,
because that doesn't keep all newlines at the end when the
``stripnl`` lexer option is False.
- Add ``-N`` option to command-line interface to get a lexer name
for a given filename.
- Add Tango style, written by Andre Roberge for the Crunchy project.
- Add Python3TracebackLexer and ``python3`` option to
PythonConsoleLexer.
- Fix a few bugs in the Haskell lexer.
- Fix PythonTracebackLexer to be able to recognize SyntaxError and
KeyboardInterrupt (#360).
- Provide one formatter class per image format, so that surprises like::
pygmentize -f gif -o foo.gif foo.py
creating a PNG file are avoided.
- Actually use the `font_size` option of the image formatter.
- Fixed numpy lexer that it doesn't listen for `*.py` any longer.
- Fixed HTML formatter so that text options can be Unicode
strings (#371).
- Unified Diff lexer supports the "udiff" alias now.
- Fix a few issues in Scala lexer (#367).
- RubyConsoleLexer now supports simple prompt mode (#363).
- JavascriptLexer is smarter about what constitutes a regex (#356).
- Add Applescript lexer, thanks to Andreas Amann (#330).
- Make the codetags more strict about matching words (#368).
- NginxConfLexer is a little more accurate on mimetypes and
variables (#370).
Update Pygments to 0.11.1.
Pygments changelog
==================
Version 0.11.1
--------------
(released Aug 24, 2008)
- Fix a Jython compatibility issue in pygments.unistring (#358).
Version 0.11
------------
(codename Straußenei, released Aug 23, 2008)
Many thanks go to Tim Hatch for writing or integrating most of the bug
fixes and new features.
- Lexers added:
* Nasm-style assembly language, thanks to delroth
* YAML, thanks to Kirill Simonov
* ActionScript 3, thanks to Pierre Bourdon
* Cheetah/Spitfire templates, thanks to Matt Good
* Lighttpd config files
* Nginx config files
* Gnuplot plotting scripts
* Clojure
* POV-Ray scene files
* Sqlite3 interactive console sessions
* Scala source files, thanks to Krzysiek Goj
- Lexers improved:
* C lexer highlights standard library functions now and supports C99
types.
* Bash lexer now correctly highlights heredocs without preceding
whitespace.
* Vim lexer now highlights hex colors properly and knows a couple
more keywords.
* Irc logs lexer now handles xchat's default time format (#340) and
correctly highlights lines ending in ``>``.
* Support more delimiters for perl regular expressions (#258).
* ObjectiveC lexer now supports 2.0 features.
- Added "Visual Studio" style.
- Updated markdown processor to Markdown 1.7.
- Support roman/sans/mono style defs and use them in the LaTeX
formatter.
- The RawTokenFormatter is no longer registered to ``*.raw`` and it's
documented that tokenization with this lexer may raise exceptions.
- New option ``hl_lines`` to HTML formatter, to highlight certain
lines.
- New option ``prestyles`` to HTML formatter.
- New option *-g* to pygmentize, to allow lexer guessing based on
filetext (can be slowish, so file extensions are still checked
first).
- ``guess_lexer()`` now makes its decision much faster due to a cache
of whether data is xml-like (a check which is used in several
versions of ``analyse_text()``. Several lexers also have more
accurate ``analyse_text()`` now.
Default EGG_NAME to ${DISTNAME} in egg.mk and drop EGG_NAME from packages that
set it to ${DISTNAME}.
Import py24-pygments-0.10 as textproc/py-pygments. Pygments is a syntax highlighting package written in Python. It is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. Highlights are: * a wide range of common languages and markup formats is supported * special attention is paid to details, increasing quality by a fair amount * support for new languages and formats are added easily * a number of output formats, presently HTML, LaTeX, RTF and ANSI sequences * it is usable as a command-line tool and as a library * ... and it highlights even Brainfuck!
Initial revision