-
Notifications
You must be signed in to change notification settings - Fork 12
Better highlighting #5
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
Conversation
The script appends a .purescript so they're not necessary
Also add todo.txt
This should stop type classes from appearing differently based on context.
Now types in foreign imports get highlighted as types, not as data constructors
- Remove 'declaration.class' as it gives weird highlighting, replaced with 'declaration.typeclass' - Highlight type signatures properly inside class declarations - Handle left-pointing fat arrows, for superclasses
eg: <- in do blocks, -> in case statements Unfortunately, -> the function type constructor is now highlighted like a keyword. I couldn't work out how to avoid this.
Thanks for the PR, this looks really nice. Checking in the grammar file should be fine I think and it's also okay to note something in the license file. I should mention though that I'm not really using Atom much these days so if you're interested in improving this I would be happy to transfer ownership of the repo and let you take over. |
* Add language-haskell's LICENSE * Don't use a postinstall script (because the grammar file is checked in now) * Add a note to the grammar generating script about how to regenerate
Cool, thanks. I think this is good to merge now. I'm actually not an Atom user either, I'm just trying to improve PureScript highlighting on Github. |
Refs purescript/pursuit#115
I started with the Haskell grammar (from here) and made some tweaks. Notably:
forall
is now highlighted properly as a keyword in type signatures<=
(for when there are superclasses) are now highlighted properly.->
incase
, or<-
indo
, are highlighted as keywords. Unfortunately the->
function type constructor is highlighted as a keyword too, I couldn't work out how to stop this from happening.Unresolved questions:
grammars/purescript.cson
is generated by a script. Would you rather it were not checked in?