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
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.
The text was updated successfully, but these errors were encountered:
aztek
added a commit
to aztek/sunlight
that referenced
this issue
Nov 26, 2014
Do not highlight identifiers with double primes as character literals in Haskell. The bug seems to be in an extra condition that checks if we are at the beginning of a character literal. The test file for Haskell looks fine after this change.
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
is displayed as
with
'''
highlighted as a character literal.The text was updated successfully, but these errors were encountered: