Test, dsl highlighter: test custom highlighting applied to calls

This commit is contained in:
Pavel V. Talanov
2018-02-07 18:11:48 +01:00
parent d554a4234d
commit 519ea12bb2
5 changed files with 129 additions and 1 deletions
@@ -41,9 +41,11 @@ class DslHighlighterExtension : HighlighterExtension() {
)
private val styles = (1..numStyles).map { index ->
TextAttributesKey.createTextAttributesKey("KOTLIN_DSL_STYLE$index", defaultKeys[index - 1])
TextAttributesKey.createTextAttributesKey(externalKeyName(index), defaultKeys[index - 1])
}
fun externalKeyName(index: Int) = "KOTLIN_DSL_STYLE$index"
val descriptionsToStyles = (1..numStyles).associate { index ->
"Dsl//${styleOptionDisplayName(index)}" to styles[index - 1]
}