diff options
-rw-r--r-- | src/compiler.sml | 3 | ||||
-rw-r--r-- | tests/comment.ur | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler.sml b/src/compiler.sml index a296bfbb..75e98364 100644 --- a/src/compiler.sml +++ b/src/compiler.sml @@ -433,7 +433,8 @@ fun parseUrp' accLibs fname = 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 () diff --git a/tests/comment.ur b/tests/comment.ur index e69de29b..975fc277 100644 --- a/tests/comment.ur +++ b/tests/comment.ur @@ -0,0 +1 @@ +fun main () : transaction page = return <xml>Hi</xml> |