Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JLLeitschuh opened this issue Nov 20, 2017 · 2 comments

Comments

@JLLeitschuh
Copy link

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: junit-team/junit5#1170

I was told to open an issue here by the Linguist team github-linguist/linguist#3913

@ooz
Copy link

ooz commented Mar 6, 2018

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
Copy link

okmyself commented Mar 17, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants