clarified Isabelle/ML strings (refining 72238ea2201c);
authorwenzelm
Mon, 08 Dec 2014 11:50:04 +0100
changeset 59108 50ccc027e8a7
parent 59107 48429ad6d0c8
child 59109 364992cd3c50
clarified Isabelle/ML strings (refining 72238ea2201c);
src/Pure/ML/ml_lex.scala
--- a/src/Pure/ML/ml_lex.scala	Mon Dec 08 11:49:04 2014 +0100
+++ b/src/Pure/ML/ml_lex.scala	Mon Dec 08 11:50:04 2014 +0100
@@ -90,8 +90,8 @@
       repeated(character(Symbol.is_ascii_digit), 3, 3)
 
     private val str =
-      one(Symbol.is_symbolic) |
       one(character(c => c != '"' && c != '\\' && ' ' <= c && c <= '~')) |
+      one(s => Symbol.is_symbolic(s) | Symbol.is_control(s)) |
       "\\" ~ escape ^^ { case x ~ y => x + y }