Improve handling of errors in comments, and make comment tests self-checking.
This fixes a bug where trailing inline comments were rejected, and also several cases where comment parsing would fail, but the overall parser would return a non-null value.
I'm soliciting review from @j4cbo and @capitalaslash before I merge this. Fixes #101. Thanks @mfzhu7 for reporting.
Improve handling of errors in comments, and make comment tests self-checking.
This fixes a bug where trailing inline comments were rejected, and also several cases where comment parsing would fail, but the overall parser would return a non-null value.
I'm soliciting review from @j4cbo and @capitalaslash before I merge this. Fixes #101. Thanks @mfzhu7 for reporting.