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

Put match inner block in a block node #226

Merged
merged 1 commit into from
Jul 12, 2023

Commits on Jul 11, 2023

  1. Put match inner block in a block node

    This matches the other block statements (with, try, if, etc),
    all of them have a body field with a block node that contains
    the body of the statement.
    
    https://github.com/tree-sitter/tree-sitter-python/blob/5a5455ef88ead370a9c7b93d8f55ea5a6b9127d7/grammar.js#L487-L496
    
    This was also allowing
    
    ```python
    match 1: case 1: pass
    ```
    
    Which is invalid, match blocks need an indentation
    stsewd committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    43d12ec View commit details
    Browse the repository at this point in the history