KaTextAttribute¶
interface KaTextAttribute
Describes the semantic role of a fragment of rendered text, e.g. for syntax highlighting.
Inheritors¶
Types¶
Comment¶
object Comment : KaTextAttribute
A comment, such as /* = kotlin.String */.
Identifier¶
object Identifier : KaTextAttribute
An identifier, such as a declaration or type name. See Symbol when the referenced symbol is known.
Keyword¶
object Keyword : KaTextAttribute
A hard keyword or soft/modifier keyword, such as fun, val, or suspend.
NumberLiteral¶
object NumberLiteral : KaTextAttribute
A numeric literal, such as 42, 2f, or 3u.
Punctuation¶
object Punctuation : KaTextAttribute
Punctuation, such as :, ,, or ?.
StringLiteral¶
object StringLiteral : KaTextAttribute
A string or character literal, such as "text" or 'c'.
Symbol¶
class Symbol(val symbol: KaSymbol) : KaTextAttribute, KaLifetimeOwner
An identifier that references a known symbol. Only attached when KaRenderingOption.LinkSymbols is enabled.
Whitespace¶
object Whitespace : KaTextAttribute
Whitespace that is not a line break.