vkostyukov / kotlin-sublime-package

Sublime Text 2 Package for Kotlin Programming Language
Apache License 2.0
137 stars 41 forks source link

Kotlin syntax highlighting in blue stops working when it hits a , character in the method name #17

Open JLLeitschuh opened 6 years ago

JLLeitschuh commented 6 years ago

Example:

@Test
fun `🦆 ~|~test with a really, (really) terrible name & that needs to be changed!~|~`() { }
                             ^

You can see that everything after the comma is no longer syntax highlighted.

This is a valid method name in Kotlin.

I discovered this problem as part of writing up this issue: https://github.com/junit-team/junit5/issues/1170

I was told to open an issue here by the Linguist team https://github.com/github/linguist/issues/3913

ooz commented 6 years ago

I think it's a general problem for all functions named in back-tick form:

import com.github.tomakehurst.wiremock.junit.WireMockRule
import org.amshove.kluent.`should not be null`
import org.jetbrains.exposed.sql.transactions.transaction
import org.joda.time.DateTime
import org.junit.Rule

(Syntax highlighting broken starting with null and continuing in the 3rd line)

okmyself commented 6 years ago

Hello, who are you?

------------------ 原始邮件 ------------------ 发件人: "Oliver"notifications@github.com; 发送时间: 2018年3月6日(星期二) 晚上10:38 收件人: "vkostyukov/kotlin-sublime-package"kotlin-sublime-package@noreply.github.com; 抄送: "Subscribed"subscribed@noreply.github.com; 主题: Re: [vkostyukov/kotlin-sublime-package] Kotlin syntax highlighting inblue stops working when it hits a , character in the method name (#17)

I think it's a general problem for all functions named in back-tick form: import com.github.tomakehurst.wiremock.junit.WireMockRule import org.amshove.kluent.should not be null import org.jetbrains.exposed.sql.transactions.transaction import org.joda.time.DateTime import org.junit.Rule

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.