Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed broken character literal highlighting (neovimhaskell#132)
(See neovimhaskell#132) When a character literal contains a "region" start pattern ('(','[','{','"'), everything after the start pattern is interpreted as a contained region, and consequently breaks syntax highlighting. After further investigation, the regex used to match character literal is actually incorrect according to the Haskell 2010 language specification (https://www.haskell.org/onlinereport/haskell2010/haskellch2.html#x7-200002.6), which means most valid character literals aren't highlighted at all, and the \u<code> pattern while not being a legal character in Haskell, is correctly highlighted. This commit tries to remedy the above issues.
- Loading branch information