sunlight icon indicating copy to clipboard operation
sunlight copied to clipboard

Identifiers with double primes are parsed as character literals in Haskell

Open aztek opened this issue 11 years ago • 0 comments

It is quite common in Haskell to name a variable with a single quote at the end (imitating a prime symbol). Double primes (two single quotes at the end) are also common. Sunlight doesn't seem to handle them very well. The following snippet of Haskell code

c'' = 'a'

is displayed as

''' = 'a'

with ''' highlighted as a character literal.

aztek avatar Nov 26 '14 12:11 aztek