@@ -328,15 +328,15 @@ keyword kwd =
328 "KEYWORD=" ++ kwd
328 "KEYWORD=" ++ kwd
331−prime :: String
331+prime :: String -> String
332−prime =
332+prime var =
333− "PRIME"
333+ "PRIME=" ++ var
336data SpecialMessage
336data SpecialMessage
337 = MsgKeyword String
337 = MsgKeyword String
342extractSpecialMessage :: String -> Maybe SpecialMessage
342extractSpecialMessage :: String -> Maybe SpecialMessage
@@ -344,12 +344,12 @@ extractSpecialMessage message =
344 if List.isPrefixOf "KEYWORD=" message then
344 if List.isPrefixOf "KEYWORD=" message then
345 Just $ MsgKeyword (drop (length "KEYWORD=") message)
345 Just $ MsgKeyword (drop (length "KEYWORD=") message)
347+ else if List.isPrefixOf "PRIME=" message then
348+ Just $ MsgPrime (drop (length "PRIME=") message)
347 else if tab == message then
350 else if tab == message then
348 Just MsgTab
351 Just MsgTab
350− else if prime == message then
@@ -397,16 +397,16 @@ parseErrorReport messages =
397 , Just "Rename it to something else."
397 , Just "Rename it to something else."
400+ Just (MsgPrime var) ->
401+ ( "Ran into a single quote in a variable name. This was removed in 0.18!"
402+ , Just $ "Change it to a number or an underscore, like " ++ var ++ "_ or " ++ var ++ "1"
400 Just MsgTab ->
405 Just MsgTab ->
401 ( "A tab character was found, but all whitespace (including indentation) must be spaces not tabs."
406 ( "A tab character was found, but all whitespace (including indentation) must be spaces not tabs."
402 , Just "I am looking for spaces, not tabs."
407 , Just "I am looking for spaces, not tabs."
406− ( "Ran into a single quote in a variable name. This was removed in 0.18!"
407− , Just "Change it to a number or an underscore: x' => x1"
410 Nothing ->
410 Nothing ->
412 , Nothing
412 , Nothing