Skip to content
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

CFamily: improve label detection #2022

Merged
merged 5 commits into from
Jan 6, 2022
Merged

Conversation

amitkummer
Copy link
Contributor

@amitkummer amitkummer commented Jan 5, 2022

Resolves #1996, resolves #1182.

This variable is unused since the first commit to this file
in the commit history, so it's probably safe to remove it.
This is so we don't match numbers as labels with the new labels rule.
@Anteru Anteru added this to the 2.11.2 milestone Jan 6, 2022
@Anteru Anteru added the A-lexing area: changes to individual lexers label Jan 6, 2022
@Anteru
Copy link
Collaborator

Anteru commented Jan 6, 2022

I can't claim I fully understood how you did it, but the tests look good :) Thanks a lot for working on this, merging for the 2.11.2 release!

@Anteru Anteru merged commit bd6d682 into pygments:master Jan 6, 2022
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.

C++ lexer thinks that : can only follow a label name C/C++ conditional statement
2 participants