]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

black/parser: partial support for pattern matching (#2586)
authorBatuhan Taskaya <isidentical@gmail.com>
Sun, 14 Nov 2021 03:15:31 +0000 (06:15 +0300)
committerGitHub <noreply@github.com>
Sun, 14 Nov 2021 03:15:31 +0000 (19:15 -0800)
commit1e0ec543ff3a7de715c8ee3359c8defb2c2c0e0d
tree3f8bc9dbdb61bbb6a2e48bb75728bc55744ff3e6
parent5e191c29d4492d14f9090a924a77b3dc055443a6
black/parser: partial support for pattern matching (#2586)

Partial implementation for #2242. Only works when explicitly stated -t py310.

Co-authored-by: Richard Si <63936253+ichard26@users.noreply.github.com>
14 files changed:
CHANGES.md
src/black/linegen.py
src/black/mode.py
src/black/parsing.py
src/blib2to3/Grammar.txt
src/blib2to3/pgen2/driver.py
src/blib2to3/pgen2/grammar.py
src/blib2to3/pgen2/parse.py
src/blib2to3/pgen2/pgen.py
src/blib2to3/pygram.py
tests/data/parenthesized_context_managers.py [new file with mode: 0644]
tests/data/pattern_matching_complex.py [new file with mode: 0644]
tests/data/pattern_matching_simple.py [new file with mode: 0644]
tests/test_format.py