Files with a comment as the last line weren't parsing correctly.
Example
import Nat
print 5
// This breaks the code!
I removed the requirement of a newline, since the regex handles this just fine.
All tests are passing (at least on linux), but I can't see windows being too much of an issue, since the \r would just be consumed as part of the comment.
Files with a comment as the last line weren't parsing correctly. Example
I removed the requirement of a newline, since the regex handles this just fine.
All tests are passing (at least on linux), but I can't see windows being too much of an issue, since the \r would just be consumed as part of the comment.