author | wenzelm |
Mon, 11 Dec 2006 21:41:03 +0100 | |
changeset 21774 | 3f9324ff06e3 |
parent 21773 | 0038f5fc2065 |
child 21775 | 8be8da44ee56 |
--- a/src/Pure/Syntax/lexicon.ML Mon Dec 11 21:39:28 2006 +0100 +++ b/src/Pure/Syntax/lexicon.ML Mon Dec 11 21:41:03 2006 +0100 @@ -224,8 +224,8 @@ "Inner lexical error: " ^ msg ^ " at " ^ quote (prfx ^ Symbol.beginning 10 cs); val scan_chr = - $$ "\\" |-- Scan.one Symbol.not_eof || - Scan.one (fn s => s <> "'" andalso Symbol.not_eof s) || + $$ "\\" |-- $$ "'" || + Scan.one (fn s => s <> "\\" andalso s <> "'" andalso Symbol.not_eof s) || $$ "'" --| Scan.ahead (~$$ "'"); val scan_str =