From 92d8d22878aa25db956c3a578cfe82962a8bc518 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Tue, 11 Apr 2023 17:06:27 +0100 Subject: [PATCH 1/2] [filetypes] Update Kotlin basic types --- data/filedefs/filetypes.Kotlin.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/filedefs/filetypes.Kotlin.conf b/data/filedefs/filetypes.Kotlin.conf index 6a5c9af260..835fff3b58 100644 --- a/data/filedefs/filetypes.Kotlin.conf +++ b/data/filedefs/filetypes.Kotlin.conf @@ -4,7 +4,7 @@ # https://kotlinlang.org/docs/reference/keyword-reference.html primary=abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while true false null as fun in object typealias val var when by constructor delegate dynamic field file get init param property receiver set setparam where actual annotation companion const crossinline data expect external infix inline inner internal lateinit noinline open operator out reified sealed suspend tailrec vararg field it # https://kotlinlang.org/docs/reference/basic-types.html -secondary=Double Float Long Int Short Byte NaN Void +secondary=Boolean Byte Char Double Float Long Int Short String UByte UInt ULong UShort Void # documentation keywords for javadoc doccomment=author deprecated exception param return see serial serialData serialField since throws todo version typedefs= From 9c146b912b3b98d2123dd65c071d0aa54704cc5d Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Wed, 12 Apr 2023 12:59:41 +0100 Subject: [PATCH 2/2] Add Any, Nothing, Unit; Remove Void --- data/filedefs/filetypes.Kotlin.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/filedefs/filetypes.Kotlin.conf b/data/filedefs/filetypes.Kotlin.conf index 835fff3b58..fd72d8e1ec 100644 --- a/data/filedefs/filetypes.Kotlin.conf +++ b/data/filedefs/filetypes.Kotlin.conf @@ -3,8 +3,10 @@ [keywords] # https://kotlinlang.org/docs/reference/keyword-reference.html primary=abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while true false null as fun in object typealias val var when by constructor delegate dynamic field file get init param property receiver set setparam where actual annotation companion const crossinline data expect external infix inline inner internal lateinit noinline open operator out reified sealed suspend tailrec vararg field it + # https://kotlinlang.org/docs/reference/basic-types.html -secondary=Boolean Byte Char Double Float Long Int Short String UByte UInt ULong UShort Void +secondary=Any Boolean Byte Char Double Float Long Int Nothing Short String UByte UInt ULong Unit UShort + # documentation keywords for javadoc doccomment=author deprecated exception param return see serial serialData serialField since throws todo version typedefs=