From 09188ed930bcb08e56d1846fbf9f5cb972a2d188 Mon Sep 17 00:00:00 2001 From: Jaydeep P Das Date: Sat, 12 Mar 2022 10:18:32 +0530 Subject: userdiff: add builtin diff driver for kotlin language. The xfuncname pattern finds func/class declarations in diffs to display as a hunk header. The word_regex pattern finds individual tokens in Kotlin code to generate appropriate diffs. This patch adds xfuncname regex and word_regex for Kotlin language. Signed-off-by: Jaydeep P Das Acked-by: Johannes Sixt Signed-off-by: Junio C Hamano --- t/t4018/kotlin-fun | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 t/t4018/kotlin-fun (limited to 't/t4018/kotlin-fun') diff --git a/t/t4018/kotlin-fun b/t/t4018/kotlin-fun new file mode 100644 index 0000000000..2a60280256 --- /dev/null +++ b/t/t4018/kotlin-fun @@ -0,0 +1,5 @@ +fun RIGHT(){ + //a comment + //b comment + return ChangeMe() +} -- cgit v1.2.3