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

Comments inside of type declaration does not parse #3

Closed
tunguski opened this issue Apr 17, 2017 · 1 comment
Closed

Comments inside of type declaration does not parse #3

tunguski opened this issue Apr 17, 2017 · 1 comment

Comments

@tunguski
Copy link
Owner

-- BBlack and NBlack should only be used during the deletion
-- algorithm. Any other occurrence is a bug and should fail an assert.
type NColor
    = Red
    | Black
    | BBlack  -- Double Black, counts as 2 blacks for the invariant
    | NBlack  -- Negative Black, counts as -1 blacks for the invariant

Comment after BBlack and before NBlack causes parse error.

@tunguski
Copy link
Owner Author

Similar case:

if True {- ok! -}
then True
else False

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

1 participant