From af0eaee01737d26314c9c3618153e99d1eb3e2f1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 1 Jun 2021 18:17:40 +0200 Subject: Update --- syntax/kotlin.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'syntax/kotlin.vim') diff --git a/syntax/kotlin.vim b/syntax/kotlin.vim index 9da75fa9..ca7fbef5 100644 --- a/syntax/kotlin.vim +++ b/syntax/kotlin.vim @@ -5,7 +5,7 @@ endif " Vim syntax file " Language: Kotlin " Maintainer: Alexander Udalov -" Latest Revision: 11 April 2021 +" Latest Revision: 20 April 2021 if exists('b:current_syntax') finish @@ -47,7 +47,7 @@ syn keyword ktType Synchronized Target TestTimeSource ThreadLocal Throwable Thro syn keyword ktType UByteIterator UInt UIntArray UIntIterator UIntProgression UIntRange ULong ULongArray ULongIterator ULongProgression ULongRange UShort UShortArray UShortIterator syn keyword ktType UninitializedPropertyAccessException Unit UnsafeVariance UnsupportedOperationException UseExperimental Volatile -syn keyword ktModifier annotation companion enum inner abstract final open override sealed vararg dynamic expect actual +syn keyword ktModifier annotation companion enum inner abstract final open override sealed vararg dynamic expect actual suspend syn keyword ktStructure class object interface typealias fun val var constructor init syn keyword ktReservedKeyword typeof @@ -58,10 +58,10 @@ syn keyword ktConstant null syn keyword ktModifier reified external inline noinline crossinline syn match ktModifier "\v<(data|value)>\ze\@=.*" -syn match ktModifier "\v<(tailrec|operator|infix|suspend)>\ze\@=.*" +syn match ktModifier "\v<(tailrec|operator|infix)>\ze\@=.*" syn match ktModifier "\v<(const)>\ze\@=.*" syn match ktModifier "\v<(lateinit)>\ze\@=.*" -syn match ktModifier "\v<(internal|private|protected|public)>\ze\@=.*<(class|object|fun|val|var|typealias|constructor)>" +syn match ktModifier "\v<(internal|private|protected|public)>\ze\@=.*<(class|object|interface|typealias|fun|val|var|constructor|get|set)>" syn match ktOperator "\v\?:|::|\<\=? | \>\=?|[!=]\=\=?|\??|[-!%&*+/|]" -- cgit v1.2.3