Skip to content

Put Haskell symbol chars in punctuation char class. #471

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

Merged
merged 2 commits into from
Feb 26, 2015
Merged

Put Haskell symbol chars in punctuation char class. #471

merged 2 commits into from
Feb 26, 2015

Conversation

gracjan
Copy link
Contributor

@gracjan gracjan commented Feb 17, 2015

Emacs defines 'w' class as word chars and '_' as set that together with
'w' can form identifiers. Note that by this operators in programming
languages fall under punctuation '.' class and are treated as such by
for example c-mode, java-mode, etc.

It is confusing that characters defined in Haskell Report as 'symbol'
are NOT the same as 'symbol' character class defined in Emacs.

Fixes #311.

@gracjan
Copy link
Contributor Author

gracjan commented Feb 25, 2015

@purcell?

Emacs defines 'w' class as word chars and '_' as set that together with
'w' can form identifiers. Note that by this operators in programming
languages fall under punctuation '.' class and are treated as such by
for example c-mode, java-mode, etc.

It is confusing that characters defined in Haskell Report as 'symbol'
are NOT the same as 'symbol' character class defined in Emacs.
purcell added a commit that referenced this pull request Feb 26, 2015
Put Haskell symbol chars in punctuation char class.
@purcell purcell merged commit b428472 into haskell:master Feb 26, 2015
@purcell
Copy link
Member

purcell commented Feb 26, 2015

Let's give this a go... :-)

@mattraibert
Copy link

Thanks for working on this!

@gracjan
Copy link
Contributor Author

gracjan commented Mar 2, 2015

You are welcome!

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

Successfully merging this pull request may close these issues.

symbol includes trailing @ sign in as-patterns
3 participants