Closed belyaev-mikhail closed 6 years ago
fun foo() {
val x = Bar::class
val y = hello
}
As is #4
val x = valueOfMe + "=4asdasdasdas"
val z = 5
As is #8
(see "value" and "=" on the same line there)
for ((key, value) in BlockOre.inventoryVariants) {
val parts = value.split("=")
val name = parts[0] + parts[1].toLowerCase().capitalize()
if (key == 2) {
OreDictionary.registerOre("${name}_Mgc", ItemStack(BlockOre, 1, key))
} else {
OreDictionary.registerOre(name, ItemStack(BlockOre, 1, key))
}
}
Same goes for fun
.
val x = funToPlayWith + "(){"
val b = "Hello"
val x = "}"
val z = foo()
Also #9
Should be fixed by #20 (I hope). Feel free to re-open if not.
Anything starting with a "class" or "object" or maybe other keywords now triggers highlighting the line as a class header. If the same line somehow contains a '{' symbol, the rest of the file is not highlighted.