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

Line comments go wrong #152

Closed
koba-e964 opened this issue Jan 16, 2017 · 1 comment
Closed

Line comments go wrong #152

koba-e964 opened this issue Jan 16, 2017 · 1 comment

Comments

@koba-e964
Copy link

koba-e964 commented Jan 16, 2017

Rules such as

op5 -> Op // %nonassoc "=" "<>" "<" ">" "<=" ">="
    = "=" { Op::Eq }
    / "<>" { Op::Ne }
    / "<=" { Op::Le }
    / ">=" { Op::Ge }
    / "<" { Op::Lt }
    / ">" { Op::Gt }

are not correctly compiled, because the line comment affects the rest of generated Rust code.
This phenomenon is observed in peg v0.5.0.

@kevinmehall
Copy link
Owner

Thanks for noticing and reporting this!

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