git-commit-vandalism/t/t4034/kotlin/pre
Jaydeep P Das 09188ed930 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>
2022-03-12 18:15:47 -08:00

31 lines
417 B
Plaintext

println("Hello World!\n")
1 -1e10 0xabcdef 'x'
[a] a->b a.b
!a a.inv() a*b a&b
a*b a/b a%b
a+b a-b
a shr b
a<b a<=b a>b a>=b
a==b a!=b a===b
a and b
a^b
a or b
a&&b a||b
a=b a+=b a-=b a*=b a/=b a%=b a<<=b a>>=b a&=b a^=b a|=b
a=b c+=d e-=f g*=h i/=j k%=l m<<=n o>>=p q&=r s^=t u|=v
a<<=b
a||b a&&b
a,y
--a==--b
a++==++b
0xFF_EC_DE_5E 0b100_000 100_000
a==b
a!!b
_32.find(arr)
X.fill()
X.u+1
X.u-2
a.b
a?.b
.32_00_456