You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: currently parsing `[int||Text|]` fails with the current Haskell
grammar.
This happens, because we parse the beginning in a greedy way, and so
parse `[int||` as beginning of typed quasi-quoter. Thus end must be
`||]` respectively, but we never meet it.
Solution: custom quoters are never typed, and GHC (tried with 8.10.7
version) interprets `[int||Abc||]` as a mere quoter with `|Abc|` body.
So here we adjust the pattern for custom quoters to be never typed.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
- Add support for Alex and Happy ([#97](https://github.com/JustusAdam/language-haskell/issues/97)), thanks to [@matthewess](https://github.com/matthewess).
4
4
- Default to .hs when saving files ([#197](https://github.com/JustusAdam/language-haskell/issues/197)), thanks to [@noughtmare](https://github.com/noughtmare).
5
+
- Fix highlighting for custom quasi quoters with immediate `|`
0 commit comments