src/HOL/TPTP/TPTP_Parser/tptp.lex
changeset 47689 f5c05e51668f
parent 47358 26c4e431ef05
child 57808 cf72aed038c8
--- a/src/HOL/TPTP/TPTP_Parser/tptp.lex	Mon Apr 23 12:23:23 2012 +0100
+++ b/src/HOL/TPTP/TPTP_Parser/tptp.lex	Mon Apr 23 12:23:23 2012 +0100
@@ -54,9 +54,9 @@
 
 percentage_sign           = "%";
 double_quote              = ["];
-do_char                   = ([^"]|[\\]["\\]);
+do_char                   = ([^"\\]|[\\]["\\]);
 single_quote              = ['];
-sq_char                   = ([\040-\041\043-\126]|[\\]['\\]);
+sq_char                   = ([^'\\]|[\\]['\\]);
 sign                      = [+-];
 dot                       = [.];
 exponent                  = [Ee];
@@ -90,7 +90,7 @@
 distinct_object           = {double_quote}{do_char}+{double_quote};
 
 ws                        = ([\ ]|[\t]);
-single_quoted             = {single_quote}({alpha_numeric}|{sq_char}|{ws})+{single_quote};
+single_quoted             = {single_quote}{sq_char}+{single_quote};
 
 system_comment_one        = [%][\ ]*{ddollar}[_]*;
 system_comment_multi      = [/][\*][\ ]*(ddollar)([^\*]*[\*][\*]*[^/\*])*[^\*]*[\*][\*]*[/];