mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
09188ed930
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>
30 lines
413 B
Text
30 lines
413 B
Text
println("Hello World?")
|
|
(1) (-1e10) (0xabcdef) 'y'
|
|
[x] x->y x.y
|
|
!x x.inv() x*y x&y
|
|
x*y x/y x%y
|
|
x+y x-y
|
|
a shl b
|
|
x<y x<=y x>y x>=y
|
|
x==y x!=y x===y
|
|
x and y
|
|
x^y
|
|
x or y
|
|
x&&y x||y
|
|
x=y x+=y x-=y x*=y x/=y x%=y x<<=y x>>=y x&=y x^=y x|=y
|
|
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
|
|
x,y
|
|
--a!=--b
|
|
a++!=++b
|
|
0xFF_E1_DE_5E 0b100_100 200_000
|
|
a===b
|
|
a!=b
|
|
_33.find(arr)
|
|
X.find()
|
|
X.f+1
|
|
X.u+2
|
|
a..b
|
|
a?:b
|
|
.32_00_446
|