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

Parser doesn't parse function with comment on same line #485

Open
MarcelGarus opened this issue Jun 4, 2023 · 0 comments · May be fixed by #928
Open

Parser doesn't parse function with comment on same line #485

MarcelGarus opened this issue Jun 4, 2023 · 0 comments · May be fixed by #928
Labels
P: Compiler: Frontend Package: The compiler frontend T: Fix Type: Bug Fixes

Comments

@MarcelGarus
Copy link
Member

Currently, the parser doesn't parse this code:

is value := # ✨.print "is result?"
  value %
    Ok _ | Error _ -> True
    _ -> False

It complains that value is not defined, so it seems like it stops parsing the function after the first line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Compiler: Frontend Package: The compiler frontend T: Fix Type: Bug Fixes
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants