src/Pure/Isar/outer_syntax.ML
changeset 8652 39a695b0b1d7
parent 8583 34c4847fd8c1
child 8660 e5048a26e1d8
--- a/src/Pure/Isar/outer_syntax.ML	Sat Apr 01 20:12:52 2000 +0200
+++ b/src/Pure/Isar/outer_syntax.ML	Sat Apr 01 20:13:33 2000 +0200
@@ -359,9 +359,11 @@
   Scan.depend (fn 0 => Scan.fail | d => Scan.one T.is_end_ignore >> pair (d - 1)) ||
   Scan.lift (Scan.one (OuterLex.not_eof andf (not o OuterLex.is_end_ignore)));
 
+val opt_newline = Scan.option (Scan.one T.is_newline);
+
 val ignore_stuff =
-  Scan.one T.is_begin_ignore |--
-    P.!!!! (Scan.pass 0 (Scan.repeat ignore) -- Scan.one T.is_end_ignore);
+  opt_newline -- Scan.one T.is_begin_ignore --
+    P.!!!! (Scan.pass 0 (Scan.repeat ignore) -- Scan.one T.is_end_ignore -- opt_newline);
 
 val markup = Scan.one (T.is_kind T.Command andf is_markup o T.val_of) >> T.val_of;
 val verbatim = Scan.one (T.is_kind T.Command andf is_verbatim o T.val_of);