Comments (4)
Okay, I think I got them all now?
Thanks for the diligent reporting!
from language-haskell.
Excellent, the addition of highlighting for type families and pattern synonyms is very much appreciated. Thanks!
The code for highlighting type families should be extended to work with data families too:
Changing data
to type
in the above makes the highlighting work properly, so it seems it's just a case of allowing the data
keyword.
For pattern synonyms, multiple patterns are not currently highlighted properly:
If that's annoying to fix then no big deal of course. (I'm not sure why False
is not getting highlighted properly there; I've reported that separately in #122.)
As seen in this screenshot, it would also be nice to support the keywords for the three built-in deriving strategies: stock
, newtype
and anyclass
.
Finally, the highlighting for the single-line deriving via that is currently implemented seems to always require parentheses:
Sorry for including all this in this single ticket; I can split it out into other issues if you would prefer.
I have a few other bugs to report, but let me be clear that I am very appreciative of the effort you have put in, and don't in any way mean to discourage. Thanks again.
from language-haskell.
I realise now that defining multiple patterns at once in a pattern synonym is actually already supported, but it's #122 that makes it look otherwise.
from language-haskell.
All the keywords mentioned in this ticket are now supported, so I'm closing this issue.
Some highlighting issues still remain, e.g. type families aren't correctly highlighting types (highlighting them as values instead). This is being tracked separately in #133.
from language-haskell.
Related Issues (20)
- Functions & Variables Highlighting HOT 1
- Flags inside pragma HOT 2
- Type signature in pattern synonym incorrectly highlighted
- {-# SCC "Specialise" #-} messes up the color of text after it HOT 4
- Don't default to .hsig when saving files
- Hovering doesn't work anymore HOT 1
- Cabal `elif` keyword is not highlighted
- QuasiQuotes with immediate `|` are not parsed correctly HOT 2
- How to navigate to function definitions? HOT 2
- GHC2021
- Repeated Haskell-style comments in Happy quotations are treated as comments HOT 3
- Highlighting broken with version 3.5 HOT 38
- Highlighting Isnt Working on Latest Update HOT 1
- Publishing on Open VSX Registry HOT 1
- No highlighting HOT 9
- VS Web Extension Suppport HOT 4
- Mis-scope of let-binding declarations immediately followed by signatures HOT 2
- Binding patterns named `pattern` are recognized as a keyword HOT 1
- LambdaCase \cases syntax
- Incorrect highlighting for some package imports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language-haskell.