]> 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:

Add support for walrus operator (#935)
authorZsolt Dollenstein <zsol.zsol@gmail.com>
Sun, 28 Jul 2019 15:03:23 +0000 (16:03 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Jul 2019 15:03:23 +0000 (16:03 +0100)
commitd8fa8df0526de9c0968e0a3568008f58eae45364
tree750f3fc25b33257a5080375a14dd8f83d2790b8a
parentcad4138050b86d1c8570b926883e32f7465c2880
Add support for walrus operator (#935)

* Parse `:=` properly
* never unwrap parenthesis around `:=`
* When checking for AST-equivalence, use `ast` instead of `typed-ast` when running on python >=3.8
* Assume code that uses `:=` is at least 3.8
black.py
blib2to3/Grammar.txt
blib2to3/pgen2/grammar.py
blib2to3/pgen2/token.py
blib2to3/pgen2/tokenize.py
blib2to3/pygram.pyi
tests/data/pep_572.py [new file with mode: 0644]
tests/test_black.py