--- a/src/Pure/Syntax/parser.ML Sat Aug 09 12:28:11 2008 +0200
+++ b/src/Pure/Syntax/parser.ML Sat Aug 09 12:28:12 2008 +0200
@@ -788,12 +788,13 @@
[] =>
let
val toks = if is_eof prev_token then indata else prev_token :: indata;
- val pos = pos_of_token prev_token;
+ val pos = Position.str_of (pos_of_token prev_token);
in
if null toks then error ("Inner syntax error: unexpected end of input" ^ pos)
else error (Pretty.string_of (Pretty.block
- (Pretty.str ("Inner syntax error" ^ pos ^ " at: ") ::
- Pretty.breaks (map (Pretty.str o str_of_token) (#1 (split_last toks))))))
+ (Pretty.str ("Inner syntax error" ^ pos ^ " at \"") ::
+ Pretty.breaks (map (Pretty.str o str_of_token) (#1 (split_last toks))) @
+ [Pretty.str "\""])))
end
| s =>
(case indata of