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

incorrect breakline parsing #104

Open
ityoung opened this issue Jan 11, 2024 · 1 comment
Open

incorrect breakline parsing #104

ityoung opened this issue Jan 11, 2024 · 1 comment

Comments

@ityoung
Copy link

ityoung commented Jan 11, 2024

open class A(private val b: B) : C
(b) {

this will raise error: org.antlr.v4.kotlinruntime.misc.ParseCancellationException

but without breakline runs success:

open class A(private val b: B) : C(b) {
@drieks
Copy link
Collaborator

drieks commented Mar 3, 2024

Hi,
thank you for reporting. I think this is a bug in the Kotlin ANTLR-Grammar, because kotlinx.ast is using a copy of this grammar to parse the kotlin source with antlr and this exception is comming from antlr.

I want to update this library in the next time, I will have a look at this issue then.

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

2 participants