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

Improve error message for Judoc comments without fun/ind definition #2085

Closed
jonaprieto opened this issue May 12, 2023 · 0 comments · Fixed by #2099
Closed

Improve error message for Judoc comments without fun/ind definition #2085

jonaprieto opened this issue May 12, 2023 · 0 comments · Fixed by #2099
Labels
enhancement New feature or request
Milestone

Comments

@jonaprieto
Copy link
Collaborator

jonaprieto commented May 12, 2023

Currently, an orphan Judoc comment results in a parsing error. While it's important to flag this issue, the error message could be more informative. Let's improve it to clearly instruct users that a Judoc comment should be accompanied by a declaration.

module A;

--- Nothing more
A.juvix:3:1:
  |
3 | <empty line>
  | ^
unexpected end of input
expecting "--", "---", "{-", "{-#", <identifier>, 
<module definition>, axiom, builtin, import, infix, 
infixl, infixr, newline, open, positive, postfix, terminating, or type
@jonaprieto jonaprieto added the enhancement New feature or request label May 12, 2023
@jonaprieto jonaprieto added this to the 0.3.4 milestone May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant