]> Witch of Git - ivy/commit
[Parser] Support code with trailing comments
authorCassie Jones <code@witchoflight.com>
Sun, 7 Feb 2021 07:03:51 +0000 (02:03 -0500)
committerCassie Jones <code@witchoflight.com>
Sun, 7 Feb 2021 07:03:51 +0000 (02:03 -0500)
commit7f168045acd1408b943396953fa41024d5f41a78
tree4418bc82c7c5574f1f44353908f476020d695128
parent3db5e71dcc476b0b1ddc31b1f2e0e13488d028c5
[Parser] Support code with trailing comments

The previous implementation using ess::parse_one and then checking that
there was no trailing text would fail if there were trailing comments.
Parsing and then checking that there was only one expression returned
avoids this issue.
src/lib.rs