summaryrefslogtreecommitdiff
path: root/compiler/parser/Lexer.x
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-07-23 11:40:37 +0200
committerBen Gamari <ben@smart-cactus.org>2015-07-23 11:41:00 +0200
commitd784bdeb62a6b11831c5235a97449ff2a86dcc52 (patch)
tree900feb016df2bc8197ef6a467e6260dbd4d932f2 /compiler/parser/Lexer.x
parent985127510685c3e7ed462260bd69d2e6557430f4 (diff)
downloadhaskell-d784bdeb62a6b11831c5235a97449ff2a86dcc52.tar.gz
Lexer: support consecutive references to Haddock chunks (#10398)
Reviewers: austin, bgamari, Fuuzetsu Reviewed By: bgamari Subscribers: thomie, bgamari Differential Revision: https://phabricator.haskell.org/D1025 GHC Trac Issues: #10398
Diffstat (limited to 'compiler/parser/Lexer.x')
-rw-r--r--compiler/parser/Lexer.x2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x
index a9293da401..7dce81c561 100644
--- a/compiler/parser/Lexer.x
+++ b/compiler/parser/Lexer.x
@@ -1012,7 +1012,7 @@ withLexedDocType lexDocComment = do
case prevChar buf ' ' of
'|' -> lexDocComment input ITdocCommentNext False
'^' -> lexDocComment input ITdocCommentPrev False
- '$' -> lexDocComment input ITdocCommentNamed False
+ '$' -> lexDocComment input ITdocCommentNamed True
'*' -> lexDocSection 1 input
'#' -> lexDocComment input ITdocOptionsOld False
_ -> panic "withLexedDocType: Bad doc type"