X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Fhpc%2FHpcLexer.hs;fp=utils%2Fhpc%2FHpcLexer.hs;h=feeb35a8ff6bcfb2a3b1cc7afe025522187c14f6;hb=91d25cf9ee703506ff198bd899d0cd40c4cba0cd;hp=db886a38ac0477b1a7a49b1fef85ac4877744ab5;hpb=c2792423039fc62d809bb56a5f9f57494d05176b;p=ghc-hetmet.git diff --git a/utils/hpc/HpcLexer.hs b/utils/hpc/HpcLexer.hs index db886a3..feeb35a 100644 --- a/utils/hpc/HpcLexer.hs +++ b/utils/hpc/HpcLexer.hs @@ -11,11 +11,11 @@ data Token deriving (Eq,Show) initLexer :: String -> [Token] -initLexer str = [ t | (_,_,t) <- lexer str 1 0 ] +initLexer str = [ t | (_,_,t) <- lexer str 1 1 ] lexer :: String -> Int -> Int -> [(Int,Int,Token)] lexer (c:cs) line column - | c == '\n' = lexer cs (succ line) 0 + | c == '\n' = lexer cs (succ line) 1 | c == '\"' = lexerSTR cs line (succ column) | c == '[' = lexerCAT cs "" line (succ column) | c `elem` "{};-:"