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-inline-class | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 t/t4018/kotlin-inline-class (limited to 't/t4018/kotlin-inline-class') diff --git a/t/t4018/kotlin-inline-class b/t/t4018/kotlin-inline-class new file mode 100644 index 0000000000..7bf46dd8d4 --- /dev/null +++ b/t/t4018/kotlin-inline-class @@ -0,0 +1,5 @@ +value class RIGHT(Args){ + // a comment + // b comment + ChangeMe +} -- cgit v1.2.3