Skip to content

Improve architecture parsing in 'Debian control' lexer#3052

Merged
birkenfeld merged 1 commit intopygments:masterfrom
sblondon:debcontrol-improvement
Mar 1, 2026
Merged

Improve architecture parsing in 'Debian control' lexer#3052
birkenfeld merged 1 commit intopygments:masterfrom
sblondon:debcontrol-improvement

Conversation

@sblondon
Copy link
Copy Markdown
Contributor

@sblondon sblondon commented Feb 28, 2026

The dependancy fields accept specification of architectures and forbidden architectures. For examples:

  • Depends: foo [i386], bar [amd64]
  • Build-Depends: foo [!i386] | bar [!amd64]

The regexp modification splits the '[]' characters, the optional '!' and the architecture names.

The examples are copied from Debian Policy documentation: https://www.debian.org/doc/debian-policy/ch-relationships.html

The dependancy fields accept specification of architectures and forbidden architectures. For examples:
- Depends: foo [i386], bar [amd64]
- Build-Depends: foo [!i386] | bar [!amd64]

The regexp modification splits the '[]' characters, the optional '!' and the architecture names.

The examples are copied from Debian Policy documentation:
https://www.debian.org/doc/debian-policy/ch-relationships.html
@sblondon sblondon force-pushed the debcontrol-improvement branch from 4011976 to 1ffeb81 Compare February 28, 2026 22:01
@birkenfeld
Copy link
Copy Markdown
Member

Sure, LGTM!

@birkenfeld birkenfeld merged commit 6d9d80a into pygments:master Mar 1, 2026
15 checks passed
@sblondon sblondon deleted the debcontrol-improvement branch March 1, 2026 09:01
@Anteru Anteru added this to the 2.20.0 milestone Mar 26, 2026
@Anteru Anteru added the A-lexing area: changes to individual lexers label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lexing area: changes to individual lexers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants