Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ini lexer: Lexing literal_block '...' as "ini" resulted in an error at token: '}' #13213

Closed
ThomasWaldmann opened this issue Jan 5, 2025 · 2 comments
Labels
Milestone

Comments

@ThomasWaldmann
Copy link

Describe the bug

A part of our docs that didn't change since quite a while suddenly causes a warning from the ini lexer and thus sphinx terminates with rc 1 (which leads to termination of our CI pipeline).

data-structures.rst:971: WARNING: Lexing literal_block '...' as "ini" resulted in an error at token: '}'.

Details (full text of the ini section) see there:

borgbackup/borg#8625

I didn't see anything problematic in that ini section, even the {} were nested correctly.

How to Reproduce

See the linked PR.

Environment Information

Platform:              darwin; (macOS-15.2-arm64-arm-64bit-Mach-O)
Python version:        3.13.1 (main, Dec  3 2024, 17:59:52) [Clang 16.0.0 (clang-1600.0.26.4)])
Python implementation: CPython
Sphinx version:        8.1.3
Docutils version:      0.21.2
Jinja2 version:        3.1.5
Pygments version:      2.19.0

Sphinx extensions

No response

Additional context

No response

@kartben
Copy link
Contributor

kartben commented Jan 5, 2025

https://pypi.org/project/Pygments/#history
Likely a regression/issue with latest Pygments release

@ThomasWaldmann
Copy link
Author

pygments/pygments#2834

@AA-Turner AA-Turner modified the milestones: 8.2.0, 8.x Jan 12, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants