Skip to content

Turtle: Allow "empty" comment lines#2980

Merged
birkenfeld merged 1 commit intopygments:masterfrom
zyzzyxdonta:turtle-allow-empty-comment-lines
Feb 20, 2026
Merged

Turtle: Allow "empty" comment lines#2980
birkenfeld merged 1 commit intopygments:masterfrom
zyzzyxdonta:turtle-allow-empty-comment-lines

Conversation

@zyzzyxdonta
Copy link
Copy Markdown
Contributor

Comments may consist of only a # symbol immediately followed by a newline character. Comments like this are likely to appear for formatting purposes in larger blocks of comments.

Comments may consist of only a `#` symbol immediately followed by a
newline character. Comments like this are likely to appear for
formatting purposes in larger blocks of comments.
@zyzzyxdonta
Copy link
Copy Markdown
Contributor Author

Relevant section in the spec, for reference: https://www.w3.org/TR/turtle/#sec-grammar-comments

@birkenfeld
Copy link
Copy Markdown
Member

Thanks for the PR!

@birkenfeld birkenfeld merged commit d19176b into pygments:master Feb 20, 2026
@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