Skip to content

Fix #1146 by treating . as punctuation #1149

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 1 commit into from
Feb 13, 2016

Conversation

mrBliss
Copy link
Contributor

@mrBliss mrBliss commented Feb 11, 2016

In haskell-cabal-mode with the point indicated with the vertical bar below, forward-char should leave the point after Some instead of after Type.

Exposed-Modules:   |Some.Internal.Type

This was caused by the following line:

(modify-syntax-entry ?. "w"  st)

Which makes "." a word constituent instead of a punctuation character. This was added in aa97009, "merge caballero with haskell-cabal". The fix: remove the line above.

In `haskell-cabal-mode` with the point indicated with the vertical bar
below, `forward-char` should leave the point after "Some" instead of
after "Type".

    Exposed-Modules:   |Some.Internal.Type

This was caused by the following line:

    (modify-syntax-entry ?. "w"  st)

Which makes "." a word constituent instead of a punctuation character.
This was added in aa97009, "merge
caballero with haskell-cabal". The fix: remove the line above.
@gracjan
Copy link
Contributor

gracjan commented Feb 11, 2016

I wonder what will break if we merge this...

@mrBliss
Copy link
Contributor Author

mrBliss commented Feb 11, 2016

When I tried to do the same thing for hyphens, as suggested by bergey in #1146, many tests started failing. The combination of \w in regexps and hyphens in sections headings and/or targets was the reason. As periods are not used there (or are they used in targets?) I don't think much will break.

@gracjan
Copy link
Contributor

gracjan commented Feb 11, 2016

Lets wait the usual day before merging. If nobody protests by tomorrow we will merge it.

@geraldus
Copy link
Contributor

Thanks! (:

@bergey
Copy link
Contributor

bergey commented Feb 11, 2016

@mrBliss Thanks for looking into the hyphens. I'll take a shot at them when I have (a lot) more time.

gracjan added a commit that referenced this pull request Feb 13, 2016
@gracjan gracjan merged commit 02dfe27 into haskell:master Feb 13, 2016
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.

4 participants