aboutsummaryrefslogtreecommitdiff
path: root/src/HaddockLex.hs
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-06-05 09:12:02 +0000
committersimonmar <unknown>2002-06-05 09:12:02 +0000
commit6d98989cfb607470f3507cb9f33052348d896e17 (patch)
tree3bf4ff3c6f493b6ab38b5493ab3773f1a65ec00a /src/HaddockLex.hs
parent53fd105c591a4f89cdd2f7b56f982db871f38e67 (diff)
[haddock @ 2002-06-05 09:12:02 by simonmar]
Identifiers in single quotes can be symbol names too (bug reported by Hal Daume).
Diffstat (limited to 'src/HaddockLex.hs')
-rw-r--r--src/HaddockLex.hs2
1 files changed, 1 insertions, 1 deletions
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