mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

[cli] Handle line comments in EDN input. (#759) #761

Closed ncalexan closed 6 years ago

ncalexan commented 6 years ago

What was happening is that ["[;", "]"] would get glued to "[; ]", which of course can never complete.

It would be good to add tests of this, but the existing multi-line InputReader makes that challenging and I don't want to invest the time to improve it: I expect it to be overhauled as part of a transition away from parsing with combine and toward parsing with rust-peg.