summaryrefslogtreecommitdiff
path: root/t/t4018/kotlin-inline-class
diff options
context:
space:
mode:
authorLibravatar Jaydeep P Das <jaydeepjd.8914@gmail.com>2022-03-12 10:18:32 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-03-12 18:15:47 -0800
commit09188ed930bcb08e56d1846fbf9f5cb972a2d188 (patch)
treeb4fec1636c1447a69ad3527ffb3edb456802ce7b /t/t4018/kotlin-inline-class
parentThe eighth batch (diff)
downloadtgif-09188ed930bcb08e56d1846fbf9f5cb972a2d188.tar.xz
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 <jaydeepjd.8914@gmail.com> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/kotlin-inline-class')
-rw-r--r--t/t4018/kotlin-inline-class5
1 files changed, 5 insertions, 0 deletions
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
+}