Commit 9d9c5347 authored by thomie's avatar thomie

Lexer: update outdated comments [skip ci]

The test for TemplateHaskell was removed in
09015be8.
parent a2f04a26
......@@ -1425,9 +1425,9 @@ lex_stringgap s = do
lex_char_tok :: Action
-- Here we are basically parsing character literals, such as 'x' or '\n'
-- but, when Template Haskell is on, we additionally spot
-- 'x and ''T, returning ITsimpleQuote and ITtyQuote respectively,
-- but WITHOUT CONSUMING the x or T part (the parser does that).
-- but we additionally spot 'x and ''T, returning ITsimpleQuote and
-- ITtyQuote respectively, but WITHOUT CONSUMING the x or T part
-- (the parser does that).
-- So we have to do two characters of lookahead: when we see 'x we need to
-- see if there's a trailing quote
lex_char_tok span buf _len = do -- We've seen '
......@@ -1460,7 +1460,7 @@ lex_char_tok span buf _len = do -- We've seen '
finish_char_tok buf loc c
_other -> do -- We've seen 'x not followed by quote
-- (including the possibility of EOF)
-- If TH is on, just parse the quote only
-- Just parse the quote only
let (AI end _) = i1
return (L (mkRealSrcSpan loc end) ITsimpleQuote)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment