Skip to content

Identifiers with double primes are parsed as character literals in Haskell #11

@aztek

Description

@aztek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions