Skip to content

Conversation

@sblondon
Copy link
Contributor

The comment character ('#' or ';') included in a quoted value does not be interpreted as beginning of comment but as a character of the quoted value.

This PR fixes #2720.

The comment character ('#' or ';') included in a quoted value does not be interpreted as beginning of comment but as a character of the quoted value.
@Anteru Anteru self-assigned this Aug 24, 2024
@Anteru Anteru merged commit 696b1ff into pygments:master Oct 6, 2024
@Anteru Anteru added this to the 2.19.0 milestone Oct 6, 2024
@Anteru Anteru added the A-lexing area: changes to individual lexers label Oct 6, 2024
@sblondon sblondon deleted the fix-git-config branch October 7, 2024 09:49
'value1' Literal.String
'"' Literal.String
'\n ' Text.Whitespace
'key 2 = ' Literal.String
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is actually highlighting a bug in the current implementation, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Thanks for spotting this. Tracked in #2835

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.

Incorrect Rendering of .gitconfig File Contents

3 participants