changeset 1605:48eed6cf2be7

Fix bug in previous change
author Adam Chlipala <adam@chlipala.net>
date Sun, 20 Nov 2011 20:46:28 -0500
parents b1af16cdc659
children f4453e2402d0
files src/compiler.sml tests/comment.ur
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/compiler.sml	Sun Nov 20 19:22:57 2011 -0500
+++ b/src/compiler.sml	Sun Nov 20 20:46:28 2011 -0500
@@ -433,7 +433,8 @@
                         case inputCommentableLine inf of
                             Content s => s = "debug" orelse s = "profile"
                                          orelse CharVector.exists (fn ch => ch = #" " orelse ch = #"\t") s orelse hasSpaceLine ()
-                          | _ => false
+                          | EndOfFile => false
+                          | OnlyComment => hasSpaceLine ()
 
                     val hasBlankLine = hasSpaceLine ()
 
--- a/tests/comment.ur	Sun Nov 20 19:22:57 2011 -0500
+++ b/tests/comment.ur	Sun Nov 20 20:46:28 2011 -0500
@@ -0,0 +1,1 @@
+fun main () : transaction page = return <xml>Hi</xml>