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: Fix matching of function parameters #2210

Merged
merged 1 commit into from Aug 18, 2022

Commits on Aug 16, 2022

  1. CFamilyLexer: Fix matching of function parameters

    This fixes an issue where in code like this:
    
    ```
    int foo(float bar) // hello() {}
    ```
    
    The lexer would match `(float bar) // hello()`
    as the parameters of the function `foo`, instead
    of just `(float bar)`.
    
    In addition, a similar test case to what was originally
    reported in pygments#2208 is added.
    amitkummer committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    db86c20 View commit details
    Browse the repository at this point in the history