vkostyukov / kotlin-sublime-package

Sublime Text 2 Package for Kotlin Programming Language
Apache License 2.0
138 stars 42 forks source link

Breaks on interpolated strings #31

Open rwols opened 2 years ago

rwols commented 2 years ago

In a gradle build script,

val buildFront = tasks.register<NpxTask>("asdf") {
    environment.set(mapOf("BUILD_PATH" to "${output.get().getAsFile().toString()}/static"))
    // broken highlighting after this line
}

the ${output.get().getAsFile().toString()} expression causes broken highlighting.

nouret commented 1 year ago

looks like the problem is on method "set", it always breaks highlighting. "set" is "Soft Keyword"

nouret commented 1 year ago

if you have problems with set method, you can delete all about "getters-and-setters" in "sublime-text/Installed Packages/Kotlin.sublime-package"