Test, dsl highlighter: test custom highlighting applied to calls
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user