]>
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 (from parent 1:
3e73152 )
Resolves #2759
be formatted. (#2526)
- Speed-up the new backtracking parser about 4X in general (enabled when
`--target-version` is set to 3.10 and higher). (#2728)
be formatted. (#2526)
- Speed-up the new backtracking parser about 4X in general (enabled when
`--target-version` is set to 3.10 and higher). (#2728)
+- Fix handling of standalone `match()` or `case()` when there is a trailing newline or a
+ comment inside of the parentheses. (#2760)
break
next_token_type, next_token_value, *_ = proxy.eat(counter)
break
next_token_type, next_token_value, *_ = proxy.eat(counter)
+ if next_token_type in (tokenize.COMMENT, tokenize.NL):
+ counter += 1
+ continue
+
if next_token_type == tokenize.OP:
next_token_type = grammar.opmap[next_token_value]
if next_token_type == tokenize.OP:
next_token_type = grammar.opmap[next_token_value]
): print(1)
case c(
very_complex=True,
): print(1)
case c(
very_complex=True,
- perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1
+ perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1,
+match(
+ arg # comment
+)
+
+match(
+)
+
+match(
+
+
+)
+
+case(
+ arg # comment
+)
+
+case(
+)
+
+case(
+
+
+)
+
+
+re.match(
+ something # fast
+)
+re.match(
+
+
+
+)
+match match(
+
+
+):
+ case case(
+ arg, # comment
+ ):
+ pass
+
# output
match something:
# output
match something:
- very_complex=True, perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1
+ very_complex=True,
+ perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1,
+
+match(arg) # comment
+
+match()
+
+match()
+
+case(arg) # comment
+
+case()
+
+case()
+
+
+re.match(something) # fast
+re.match()
+match match():
+ case case(
+ arg, # comment
+ ):
+ pass