src/Pure/Syntax/lexicon.ML
changeset 4921 74bc10921f7d
parent 4902 8fbccead3695
child 4938 c8bbbf3c59fa
--- a/src/Pure/Syntax/lexicon.ML	Wed May 13 12:20:53 1998 +0200
+++ b/src/Pure/Syntax/lexicon.ML	Wed May 13 12:21:45 1998 +0200
@@ -228,8 +228,9 @@
 
 val scan_str =
   $$ "'" |-- $$ "'" |--
-    !! (fn cs => "Inner lexical error: malformed literal string at " ^ quote ("''" ^ beginning cs))
-      (Scan.repeat scan_chr --| $$ "'" --| $$ "'");
+    !! (fn (cs, _) => "Inner lexical error: malformed literal string at " ^
+      quote ("''" ^ beginning cs))
+    (Scan.repeat scan_chr --| $$ "'" --| $$ "'");
 
 
 fun implode_xstr cs = enclose "''" "''" (implode (map (fn "'" => "\\'" | c => c) cs));