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

[Haskell] Fix type signature context not popping when encountering a guard or an instance declaration. #1885

Merged
merged 4 commits into from
Jul 29, 2019
Merged

Conversation

jacksoncooper
Copy link
Contributor

@jacksoncooper jacksoncooper commented Feb 15, 2019

Addresses #1320 and #1880. Shamelessly adapted from SublimeHaskell's syntax file here.

The test on line 75 of syntax_test_haskell.hs was deleted because it relied on the = operator to pop the type signature context.

Sublime's default Haskell syntax is a bit dated and could use a rewrite. There are a number of problems inherent to its current design, like #1321. A merge with SublimeHaskell may be a good start, but I've found that it too has a couple of idiosyncrasies. I'm not sure how to best engage the community.

@wbond
Copy link
Member

wbond commented Jul 29, 2019

Thank you @jacksoncooper and @FichteFoll!

@wbond wbond merged commit 98638f7 into sublimehq:master Jul 29, 2019
@jacksoncooper jacksoncooper deleted the patch-for-1320 branch August 1, 2019 18:29
mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 2022
…guard or an instance declaration. (sublimehq#1885)

* Pop type signature context when the indentation is less than or equal to that of the function declaration.

* Add tests for sublimehq#1320 and sublimehq#1880.

* Don't pop type signature context when encountering a comment or a line with only whitespace.

* Update tests for sublimehq#1320 and sublimehq#1880.
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.

3 participants