nishtahir / language-kotlin

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

Comments after field are not recognized as comment #4

Closed dhoepelman closed 4 years ago

dhoepelman commented 6 years ago

Github syntax highlighting does not correctly highlight comments after data class field definitions:

data class A(
  val field: Int  // This is a comment, when is not a keyword
)

// This is a comment, when is not a keyword

Expected output (IntelliJ): screen shot 2018-11-02 at 11 15 57

I came here through Github's "fixing syntax highlighting page", which indicates that this is a bug in the Kotlin grammar used. Apologies if this is the incorrect place.