X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fparser%2FLexer.x;h=fdf4bddefef29c4612c2ce369312319138192016;hp=4ce83047fc21e84210a5b7b409a3b7c9163dafa8;hb=8538e4ba68b3d34ceaa2677ed242ac45ab456ce7;hpb=847d3977929216f2484ed6ae33112b74fc86776a diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x index 4ce8304..fdf4bdd 100644 --- a/compiler/parser/Lexer.x +++ b/compiler/parser/Lexer.x @@ -285,7 +285,7 @@ $tab+ { warn Opt_WarnTabs (text "Tab character") } -- Haddock comments -<0> { +<0,option_prags> { "-- " $docsym / { ifExtension haddockEnabled } { multiline_doc_comment } "{-" \ ? $docsym / { ifExtension haddockEnabled } { nested_doc_comment } }