From 077a1fda82b237c16eb10bd988650468683a94b5 Mon Sep 17 00:00:00 2001 From: Josh Holland Date: Tue, 19 Nov 2019 15:08:10 +0000 Subject: 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 Acked-by: Johannes Sixt Signed-off-by: Junio C Hamano --- t/t4018/python-indented-def | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 t/t4018/python-indented-def (limited to 't/t4018/python-indented-def') diff --git a/t/t4018/python-indented-def b/t/t4018/python-indented-def new file mode 100644 index 0000000000..208fbadd2b --- /dev/null +++ b/t/t4018/python-indented-def @@ -0,0 +1,7 @@ +class Foo: + def RIGHT(self, x: int): + return [ + 1, + 2, + ChangeMe, + ] -- cgit v1.2.3