1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-22 15:39:06 +02:00
git/t/t4018/python-indented-def
Josh Holland 077a1fda82 userdiff: support Python async functions
Python's async functions (declared with "async def" rather than "def")
were not being displayed in hunk headers. This commit teaches git about
the async function syntax, and adds tests for the Python userdiff regex.

Signed-off-by: Josh Holland <anowlcalledjosh@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-11-20 16:31:43 +09:00

8 lines
119 B
Plaintext

class Foo:
def RIGHT(self, x: int):
return [
1,
2,
ChangeMe,
]