udalov / kotlin-vim

Kotlin plugin for Vim. Featuring: syntax highlighting, basic indentation, Syntastic support
Apache License 2.0
632 stars 51 forks source link

Raw strings don't do backslash escaping. #37

Closed tplunket closed 4 years ago

tplunket commented 4 years ago

Regarding issue #36, raw strings do not have any processing, escaping, nor interpolation in Kotlin.

udalov commented 4 years ago

Thanks for the report. In fact, raw strings do string interpolation:

>>> val x = 42
>>> """$x"""
res1: kotlin.String = 42
>>> """${x}"""
res2: kotlin.String = 42

So let's keep ktSimpleInterpolation,ktComplexInterpolation in this rule.

tplunket commented 4 years ago

Dang it, that was a last-minute change after searching the docs on string interpolation. Ok I'll get that sorted. My apologies; I don't have a Kotlin install locally and am just using TeamCity.

udalov commented 4 years ago

Thanks! :)