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

CFamilyLexer: refuse quotes between parentheses for function definiti… #2208

Merged
merged 1 commit into from Aug 15, 2022

Commits on Aug 14, 2022

  1. CFamilyLexer: refuse quotes between parentheses for function definiti…

    …ons and declarations
    
    Something like
    
    id id2("){ ... }");
    
    is no longer wrongly recognized as a "function"
    
    id id2(") {
      ...
    }
    ");
    
    As the difference in the tests shows, this has the unfortunate side
    effect that we no longer highlight something like
    
    int f(param="default");
    
    as a function declaration, but it is hard to imagine another way to
    fix this (cf. “most vexing parse” problem).
    
    Fixes pygments#2207
    jeanas committed Aug 14, 2022
    Configuration menu
    Copy the full SHA
    6b824a8 View commit details
    Browse the repository at this point in the history