]>
git.madduck.net Git - etc/vim.git/commitdiff
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:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (parent:
b0c2bcc )
`match a, *b:` (#2639) (#2659)
- Fix `match`/`case` statements that contain `match`/`case` soft keywords multiple
times, like `match re.match()` (#2661)
`match a, *b:` (#2639) (#2659)
- Fix `match`/`case` statements that contain `match`/`case` soft keywords multiple
times, like `match re.match()` (#2661)
+- Fix `case` statements with an inline body (#2665)
- Fix assignment to environment variables in Jupyter Notebooks (#2642)
- Add `flake8-simplify` and `flake8-comprehensions` plugins (#2653)
- Fix determination of f-string expression spans (#2654)
- Fix assignment to environment variables in Jupyter Notebooks (#2642)
- Add `flake8-simplify` and `flake8-comprehensions` plugins (#2653)
- Fix determination of f-string expression spans (#2654)
syms.with_stmt,
syms.funcdef,
syms.classdef,
syms.with_stmt,
syms.funcdef,
syms.classdef,
+ syms.match_stmt,
+ syms.case_block,
}
STANDALONE_COMMENT: Final = 153
token.tok_name[STANDALONE_COMMENT] = "STANDALONE_COMMENT"
}
STANDALONE_COMMENT: Final = 153
token.tok_name[STANDALONE_COMMENT] = "STANDALONE_COMMENT"
--- /dev/null
+match something:
+ case b(): print(1+1)
+ case c(
+ very_complex=True,
+ perhaps_even_loooooooooooooooooooooooooooooooooooooong=- 1
+ ): print(1)
+ case c(
+ very_complex=True,
+ perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1
+ ): print(2)
+ case a: pass
+
+# output
+
+match something:
+ case b():
+ print(1 + 1)
+ case c(
+ very_complex=True, perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1
+ ):
+ print(1)
+ case c(
+ very_complex=True, perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1
+ ):
+ print(2)
+ case a:
+ pass
"pattern_matching_simple",
"pattern_matching_complex",
"pattern_matching_extras",
"pattern_matching_simple",
"pattern_matching_complex",
"pattern_matching_extras",
+ "pattern_matching_style",
"parenthesized_context_managers",
]
"parenthesized_context_managers",
]