X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fcmm%2FCmmLex.x;h=0a1929056a00a5e59aedf104f85a3d6037ce005f;hp=42243258c52fe5ce84cc6c698ae25c87a61d604c;hb=927df6486bc0dcb598b82702ca40c8fad0d9b25f;hpb=f4b727487a65e6b611bbaafbd2207bd63a8df706 diff --git a/compiler/cmm/CmmLex.x b/compiler/cmm/CmmLex.x index 4224325..0a19290 100644 --- a/compiler/cmm/CmmLex.x +++ b/compiler/cmm/CmmLex.x @@ -11,6 +11,7 @@ ----------------------------------------------------------------------------- { +{-# LANGUAGE BangPatterns #-} {-# OPTIONS -Wwarn -w #-} -- The above -Wwarn supression flag is a temporary kludge. -- While working on this module you are encouraged to remove it and fix @@ -22,9 +23,7 @@ module CmmLex ( CmmToken(..), cmmlex, ) where -#include "HsVersions.h" - -import Cmm +import OldCmm import Lexer import SrcLoc @@ -76,7 +75,7 @@ $white_no_nl+ ; -- single-line line pragmas, of the form -- # "" \n $digit+ { setLine line_prag1 } - \" ($printable # \")* \" { setFile line_prag2 } + \" [^\"]* \" { setFile line_prag2 } .* { pop } <0> {