From 6d98989cfb607470f3507cb9f33052348d896e17 Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 5 Jun 2002 09:12:02 +0000 Subject: [haddock @ 2002-06-05 09:12:02 by simonmar] Identifiers in single quotes can be symbol names too (bug reported by Hal Daume). --- src/HaddockLex.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/HaddockLex.hs b/src/HaddockLex.hs index df5cebb5..aa299ecd 100644 --- a/src/HaddockLex.hs +++ b/src/HaddockLex.hs @@ -27,7 +27,7 @@ data Token isSpecial c = c `elem` ['\"', '@', '/'] isSingleQuote c = c `elem` ['\'', '`'] -isIdent c = isAlphaNum c || c == '_' || c == '.' +isIdent c = isAlphaNum c || c `elem` "_.!#$%&*+/<=>?@\\^|-~" -- simple finite-state machine for tokenising the doc string -- cgit v1.2.3