[project @ 1999-06-09 11:23:20 by simonmar]
authorsimonmar <unknown>
Wed, 9 Jun 1999 11:23:20 +0000 (11:23 +0000)
committersimonmar <unknown>
Wed, 9 Jun 1999 11:23:20 +0000 (11:23 +0000)
Fix qvarid bug.

ghc/compiler/parser/Lex.lhs

index 18a2549..43e35b5 100644 (file)
@@ -1000,6 +1000,7 @@ lex_id3 cont glaexts mod buf just_a_conid
      let
       lexeme  = lexemeToFastString buf'
       new_buf = mergeLexemes buf buf'
+      is_a_qvarid = cont (mk_qvar_token mod lexeme) new_buf
      in
      case _scc_ "Lex.haskellKeyword" lookupUFM haskellKeywordsFM lexeme of {
            Just kwd_token -> just_a_conid; -- avoid M.where etc.
@@ -1007,8 +1008,8 @@ lex_id3 cont glaexts mod buf just_a_conid
      if flag glaexts
        then case lookupUFM ghcExtensionKeywordsFM lexeme of {
            Just kwd_token -> just_a_conid;
-           Nothing        -> cont (mk_qvar_token mod lexeme) new_buf }
-       else just_a_conid
+           Nothing        -> is_a_qvarid }
+       else is_a_qvarid
      }}}