Fix to unparse to not double-escape backslash
authoraspinall
Tue, 28 Sep 2004 10:43:34 +0200
changeset 15209 b62f72ea3bb0
parent 15208 09271a87fbf0
child 15210 4ff917a91e16
Fix to unparse to not double-escape backslash
src/Pure/Isar/outer_lex.ML
--- a/src/Pure/Isar/outer_lex.ML	Mon Sep 27 16:03:16 2004 +0200
+++ b/src/Pure/Isar/outer_lex.ML	Tue Sep 28 10:43:34 2004 +0200
@@ -142,7 +142,7 @@
 
 fun unparse (Token (_, (kind, x))) =
   (case kind of
-    String => x |> translate_string (fn "\"" => "\\\"" | "\\" => "\\\\" | c => c) |> quote
+    String => x |> quote
   | Verbatim => x |> enclose "{*" "*}"
   | Comment => x |> enclose "(*" "*)"
   | _ => x);