nishtahir / language-kotlin

Textmate language grammar for the Kotlin programming language
Apache License 2.0
12 stars 6 forks source link

Code block with string in multi-line code block inside string colored wrongly #57

Closed niltok closed 2 years ago

niltok commented 3 years ago

wrong behavior

"outside string ${ // code block
    "inside string ${ "string in code block" } "
} text"
someFunction()

here is right behavior using raw string (not right enough maybe)

"""outside string ${ // code block
    "inside string ${ "string in code block" } "
} text"""
someFunction()

comes from here

Animeshz commented 3 years ago

That was simply a side effect of not recognizing string templates as a code block, added a quick fix with regressions :)