more precise treatment of \r\n as blank symbol (cf. 2bf29095d26f), e.g. relevant for loading theory headers in Isabelle/jEdit -- NB: jEdit and Isabelle/ML normalize newline variants to \n, but Isabelle/Scala retains them literally;
authorwenzelm
Mon, 26 Mar 2012 20:42:00 +0200
changeset 47121 fb5764df8a9c
parent 47120 500a5d97511a
child 47130 0e45e363306c
more precise treatment of \r\n as blank symbol (cf. 2bf29095d26f), e.g. relevant for loading theory headers in Isabelle/jEdit -- NB: jEdit and Isabelle/ML normalize newline variants to \n, but Isabelle/Scala retains them literally;
src/Pure/General/symbol.scala
--- a/src/Pure/General/symbol.scala	Mon Mar 26 19:18:03 2012 +0200
+++ b/src/Pure/General/symbol.scala	Mon Mar 26 20:42:00 2012 +0200
@@ -347,7 +347,7 @@
       "\\<^isub>", "\\<^isup>")
 
     val blanks =
-      recode_set(space, "\t", "\n", "\u000B", "\f", "\r", "\\<spacespace>", "\\<^newline>")
+      recode_set(space, "\t", "\n", "\u000B", "\f", "\r", "\r\n", "\\<spacespace>", "\\<^newline>")
 
     val sym_chars =
       Set("!", "#", "$", "%", "&", "*", "+", "-", "/", "<", "=", ">", "?", "@", "^", "_", "|", "~")