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

Don't treat error specially in Haskell #834

Merged
merged 1 commit into from
Dec 21, 2017

Conversation

enolan
Copy link
Contributor

@enolan enolan commented Dec 8, 2017

error was highlighted with Name::Exception which caused failures when parsing
things like error' which is a perfectly valid name. error is a regular
function with some admittedly odd behavior, it isn't itself an exception, and
there are lots of functions which may throw exceptions, so I don't think it
makes sense to highlight it specially.

Example failure with error': http://rouge.jneen.net/pastes/3mwp

`error` was highlighted with Name::Exception which caused failures when parsing
things like `error'` which is a perfectly valid name. `error` is a regular
function with some admittedly odd behavior, it isn't itself an exception, and
there are lots of functions which may throw exceptions, so I don't think it
makes sense to highlight it specially.
@gfx
Copy link
Member

gfx commented Dec 21, 2017

As you said, https://wiki.haskell.org/Keywords does not includes error. Sounds good.

Thanks for your contributions.

@gfx gfx merged commit b0fb90a into rouge-ruby:master Dec 21, 2017
@gfx gfx added the bugfix-request A request for a bugfix to be developed. label Dec 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants