[project @ 1999-09-16 17:28:06 by sof]
authorsof <unknown>
Thu, 16 Sep 1999 17:28:06 +0000 (17:28 +0000)
committersof <unknown>
Thu, 16 Sep 1999 17:28:06 +0000 (17:28 +0000)
Don't insist that {-# OPTIONS ... #-} pragma is followed by \n

ghc/driver/ghc.lprl

index b044ed4..481636a 100644 (file)
@@ -2668,7 +2668,7 @@ sub check_for_source_options {
     open(FILE,$file) || return(1); # No big loss
     
     while (<FILE>) {
-       if ( /^${comment_start} OPTIONS (.*)${comment_end}$/ ) {
+       if ( /^${comment_start} OPTIONS (.*)${comment_end}/ ) {
            # add the options found at the back of the command line.
           local(@entries) = split(/\s+/,$1);
           print STDERR "Found OPTIONS " . join(' ',@entries) . " in $file\n" if $Verbose;