aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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