Fix highlighting for objects and enum entries

JetObjectDeclarationName is now highlighted with KOTLIN_CLASS
This commit is contained in:
Alexander Udalov
2013-11-21 20:58:25 +04:00
parent 92cdb0b6e7
commit 49f8f0af92
3 changed files with 49 additions and 15 deletions
+11
View File
@@ -0,0 +1,11 @@
package testing
object <info textAttributesKey="KOTLIN_CLASS">O</info> {
fun <info textAttributesKey="KOTLIN_FUNCTION_DECLARATION">foo</info>() = 42
}
fun <info textAttributesKey="KOTLIN_FUNCTION_DECLARATION">testing</info>() {
<info textAttributesKey="KOTLIN_INSTANCE_PROPERTY">O</info>.<info textAttributesKey="KOTLIN_FUNCTION_CALL">foo</info>()
val <info textAttributesKey="KOTLIN_LOCAL_VARIABLE">o</info> = <info textAttributesKey="KOTLIN_INSTANCE_PROPERTY">O</info>
<info textAttributesKey="KOTLIN_LOCAL_VARIABLE">o</info>.<info textAttributesKey="KOTLIN_FUNCTION_CALL">foo</info>()
}