Skip to content

Fix quoted string containing comment character #2767

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

Merged
merged 1 commit into from
Oct 6, 2024
Merged

Fix quoted string containing comment character #2767

merged 1 commit into from
Oct 6, 2024

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
15 checks passed
@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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy