Kotlin / kotlin-spec

Kotlin Language Specification:
https://kotlinlang.org/spec
Apache License 2.0
387 stars 80 forks source link

Drop `;`s from the end of the rules, where they would create derivations, which are not accepted by the kotlin parser #131

Open isuckatcs opened 1 month ago

isuckatcs commented 1 month ago

The Kotlin compiler parses according to different rules than what are described in this grammar specification. This patch aims to change the grammar to reflect the behaviour of the compiler, as I described in KT-69130, it seems to be a typo in the grammar instead of a bug in the compiler.