-
-
Notifications
You must be signed in to change notification settings - Fork 63
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 signature highlighting #12
Comments
I've verified that this matches kate's highlighting behavior, so this isn't a bug in the implementation. Perhaps the haskell.xml file could be improved, though, to give better behavior. Note that we apply the following local patch to the stock haskell.xml (and this explains why
|
Yes, I had assumed this was a detail of the implementation rather than a bug. I started this issue to start a dialogue so that a consensus could be reached on whether or not this change is actually something that should be actioned. What is the rationale behind that patch? I would submit a pull request myself, but I don't really know how the highlighting XML style works. |
The patch dates to
jgm/highlighting-kate#32
I'm happy to reconsider it; perhaps you should comment there
to see if @mekeor can elaborate on the motivation. I think
I agreed at the time that the effect was more pleasing, but
it does seem a bit odd to distinguish Prelude functions from
others.
There are references on the xml format at the end of the
skylighting README.md, if you want to play with revisions.
Note that you can manually load an xml definition with the
skylighting executable; so you can iterate and test without
recompiling the library.
+++ Nick Hu [Aug 03 17 08:27 ]:
… Yes, I had assumed this was a detail of the implementation rather than
a bug. I started this issue to start a dialogue so that a consensus
could be reached on whether or not this change is actually something
that should be actioned. What is the rationale behind that patch?
I would submit a pull request myself, but I don't really know how the
highlighting XML style works.
—
You are receiving this because you commented.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.
References
1. #12 (comment)
2. https://github.com/notifications/unsubscribe-auth/AAAL5Gyv1TaRNbIu_wyCC7z7DgEvlN8wks5sUYSCgaJpZM4OrnYg
|
Sorry, I don't remember my motivation for that patch. It has been a long time. So I don't know why I changed the XML like that. I can't help you here. (Anyway, it's funny that we meet here again, @NickHu, after meeting at the xmonad-contrib repository. 😃 ) |
You can see the effect of that patch between https://imgur.com/3FK5bOo and https://imgur.com/w3fAWZP |
Currently, the syntax highlighting for Haskell only highlights the first word before
::
.When I'm writing, I often like to provide a long list of type calculations; for instance, consider below
I believe that it would be better to highlight
f x
andf . g
also; in general, I think it should highlight up to the preceding parenthesis (i.e.id
should not be highlighted).Another strange thing is that if the function before the double colon is
fmap
, no highlighting is applied...The text was updated successfully, but these errors were encountered: