Skip to content

TOML lexer: Support TOML 1.1.0#3027

Open
encukou wants to merge 2 commits intopygments:masterfrom
encukou:toml-1.1.1
Open

TOML lexer: Support TOML 1.1.0#3027
encukou wants to merge 2 commits intopygments:masterfrom
encukou:toml-1.1.1

Conversation

@encukou
Copy link
Contributor

@encukou encukou commented Jan 30, 2026

The TOML 1.1.0 changes are:

  • Allow newlines and trailing commas in inline tables
  • Add \xHH notation to basic strings for codepoints ≤255
  • Add \e escape for the escape character (not applicable: pygments allows anything after the backslash)
  • Seconds in datetime and time values are now optional

Ref. the TOML changelog: https://github.com/toml-lang/toml/blob/main/CHANGELOG.md#110--2025-12-18

Fixes #3026

The TOML 1.1.1 changes are:

- Allow newlines and trailing commas in inline tables
- Add \xHH notation to basic strings for codepoints ≤255
- Add \e escape for the escape character
  (not applicable: pygments allows anything after the backslash)
- Seconds in datetime and time values are now optional

Ref. the TOML changelog: https://github.com/toml-lang/toml/blob/main/CHANGELOG.md#110--2025-12-18
@encukou encukou changed the title TOML lexer: Support TOML 1.1.1 TOML lexer: Support TOML 1.1.0 Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TOML 1.1.0

1 participant