text/x-kotlin
*.kt;*.kts
//
/*
*/
(\.[\s\n\r]*[\w]+)[\s\n\r]*(?=\(.*\))
[a-zA-Z_$][a-zA-Z_$0-9]*
\%{simple-name}(\.\%{simple-name})*
field|file|property|get|set|receiver|param|setparam|delegate
@(\%{annotation-target}:)?
( \%{compound-name} | \[ (\%{compound-name} \s*)+ \] )
it
super
this@?
\\( # leading backslash
[\\\"\'nrbt$] | # escaped character
u[0-9a-fA-F]{4} # unicode char
)
'(\%{escaped-character}|.)'
'(\%{escaped-character}|.)[^\s]+'
class
constructor
fun
get
init
interface
object
set
typealias
val
var
(<|,) *(in|out)
as
break@?
catch
continue@?
do
else
finally
for
if
in
is
return@?
throw
to
try
when
while
import
package
`
`
abstract
annotation
by
companion
const
crossinline
data
enum
external
final
infix
inline
inner
internal
lateinit
noinline
open
operator
override
private
protected
public
reified
sealed
suspend
tailrec
vararg
where
\b ( 0x [0-9A-Fa-f][0-9A-Fa-f_]* # hex literal
| 0b [01][01_]* # binary literal
| ([0-9]+[Ee][-]?[0-9]+|
([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFdD]?|
[0-9]+[FfDd] # floating-point literal
| [0-9][0-9_]*L? # integer literal
)
[-+*/%=.!|?@:;,_&<>()\[\]]
false
true
null
\$[a-zA-Z]+
\${
}
"
"
\%{escaped-character}
"""
"""
dynamic
Annotation
Any
Array
AssertionError
Boolean
BooleanArray
Byte
ByteArray
Char
CharArray
CharSequence
ClassCastException
Comparable
Comparator
ConcurrentModificationException
DeprecationLevel
Double
DoubleArray
Enum
Error
Exception
Float
FloatArray
Function
IllegalArgumentException
IllegalStateException
IndexOutOfBoundsException
Int
IntArray
KotlinVersion
Lazy
LazyThreadSafetyMode
Long
LongArray
NoSuchElementException
NoWhenBranchMatchedException
Nothing
NullPointerException
Number
NumberFormatException
Pair
RuntimeException
Short
ShortArray
String
Throwable
Triple
Unit
UnsupportedOperationException
NotImplementedError
AbstractCollection
AbstractIterator
AbstractList
AbstractMap
AbstractMutableCollection
AbstractMutableList
AbstractMutableMap
AbstractMutableSet
AbstractSet
ArrayList
BooleanIterator
ByteIterator
CharIterator
Collection
DoubleIterator
FloatIterator
Grouping
HashMap
HashSet
IndexedValue
IntIterator
Iterable
Iterator
LinkedHashMap
LinkedHashSet
List
ListIterator
LongIterator
Map
MutableCollection
MutableIterable
MutableIterator
MutableList
MutableListIterator
MutableMap
MutableSet
RandomAccess
Set
ShortIterator
CharProgression
CharRange
ClosedFloatingPointRange
ClosedRange
IntProgression
IntRange
LongProgression
LongRange
Sequence
Appendable
CharCategory
CharDirectionality
Charsets
MatchGroup
MatchGroupCollection
MatchNamedGroupCollection
MatchResult
Regex
RegexOption
StringBuilder
Typography