Closed creationix closed 12 years ago
While testing the new "return" <-> "return nil" feature, I found a couple parser bugs.
Both "return\n// comment" and "return nill\n// comment\n" crash with the failed assertion:
"return\n// comment"
"return nill\n// comment\n"
test-parser: src/parser.cc:18: candor::internal::AstNode* candor::internal::Parser::Execute(): Assertion `Peek()->is(kEnd)' failed.
Interestingly, "return nil\n//comment" doesn't crash. (note there is no trailing newline, but there is an explicit nil.)
"return nil\n//comment"
nil
Thanks, fixed!
While testing the new "return" <-> "return nil" feature, I found a couple parser bugs.
Both
"return\n// comment"
and"return nill\n// comment\n"
crash with the failed assertion: