sunlight icon indicating copy to clipboard operation
sunlight copied to clipboard

Treat ids with double primes correctly (fixes #11)

Open aztek opened this issue 11 years ago • 2 comments

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.

aztek avatar Nov 26 '14 12:11 aztek

Cool! Can you provide a little haskell snippet containing a double prime that we can put in the test file?

tmont avatar Dec 01 '14 19:12 tmont

This one should be enough.

c :: Char
c = c'
  where c' = c''
        c'' = c'''
        c''' = c'c'
        c'c' = c'c''
        c'c'' = c''c''
        c''c'' = 'c'

(Apparently, GitHub's syntax highlighter doesn't handle quotes wery well either.)

aztek avatar Dec 02 '14 09:12 aztek