63 lines
2.4 KiB
Kotlin
63 lines
2.4 KiB
Kotlin
package me.zhouxi.slint.highlight
|
|
|
|
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors
|
|
import com.intellij.openapi.editor.HighlighterColors
|
|
import com.intellij.openapi.editor.colors.TextAttributesKey
|
|
|
|
object Definitions {
|
|
val _Annotation =
|
|
TextAttributesKey.createTextAttributesKey("_Annotation", DefaultLanguageHighlighterColors.METADATA)
|
|
|
|
val _KeyWord: TextAttributesKey =
|
|
TextAttributesKey.createTextAttributesKey("_KeyWord", DefaultLanguageHighlighterColors.KEYWORD)
|
|
|
|
val _StringLiteral: TextAttributesKey =
|
|
TextAttributesKey.createTextAttributesKey("_StringLiteral", DefaultLanguageHighlighterColors.STRING)
|
|
|
|
val _Comment: TextAttributesKey =
|
|
TextAttributesKey.createTextAttributesKey("_Comment", DefaultLanguageHighlighterColors.LINE_COMMENT)
|
|
|
|
val _DeclaredIdentifier: TextAttributesKey = TextAttributesKey.createTextAttributesKey(
|
|
"_DeclaredIdentifier", DefaultLanguageHighlighterColors.INSTANCE_FIELD
|
|
)
|
|
|
|
val _BadCharacter: TextAttributesKey =
|
|
TextAttributesKey.createTextAttributesKey("BadCharacter", HighlighterColors.BAD_CHARACTER)
|
|
|
|
val _NumberLiteral: TextAttributesKey =
|
|
TextAttributesKey.createTextAttributesKey("_NumberLiteral", DefaultLanguageHighlighterColors.NUMBER)
|
|
|
|
val _SemiColon: TextAttributesKey =
|
|
TextAttributesKey.createTextAttributesKey("_SemiColon", DefaultLanguageHighlighterColors.SEMICOLON)
|
|
val _Error: TextAttributesKey = TextAttributesKey.createTextAttributesKey("_Error", HighlighterColors.BAD_CHARACTER)
|
|
|
|
|
|
private val BadCharacter = arrayOf(_BadCharacter)
|
|
|
|
@JvmField
|
|
val KeyWord: Array<TextAttributesKey> = arrayOf(_KeyWord)
|
|
|
|
@JvmField
|
|
val StringLiteral: Array<TextAttributesKey> = arrayOf(_StringLiteral)
|
|
|
|
val DeclaredIdentifier: Array<TextAttributesKey> = arrayOf(_DeclaredIdentifier)
|
|
|
|
@JvmField
|
|
val Comment: Array<TextAttributesKey> = arrayOf(_Comment)
|
|
|
|
val Empty: Array<TextAttributesKey?> = arrayOfNulls(0)
|
|
|
|
@JvmField
|
|
val NumberLiteral: Array<TextAttributesKey> = arrayOf(_NumberLiteral)
|
|
|
|
@JvmField
|
|
val Brace: Array<TextAttributesKey> = arrayOf(DefaultLanguageHighlighterColors.BRACES)
|
|
|
|
@JvmField
|
|
val SemiColon: Array<TextAttributesKey> = arrayOf(_SemiColon)
|
|
|
|
val Error: Array<TextAttributesKey> = arrayOf(_Error)
|
|
|
|
val Annotation: Array<TextAttributesKey> = arrayOf(_Annotation)
|
|
}
|