2022-09-04 07:48:05 by Martin Husemann | Files touched by this commit (1) |
Log message:
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 !=
|
2022-08-16 16:01:19 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
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
|
2022-04-26 12:53:29 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
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
|
2022-01-07 13:20:37 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
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
|
2022-01-05 16:41:32 by Thomas Klausner | Files touched by this commit (289) |
Log message:
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.
|
2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595) |
Log message:
*: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
|
2021-12-30 18:05:08 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
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``
|
2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161) |
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
|
2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162) |
Log message:
textproc: Remove SHA1 hashes for distfiles
|
2021-05-06 09:40:56 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
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
|