Allow comments to be present inside CSV files
Closed this issue · 1 comments
vincenzopalazzo commented
The CSV format is extensively used in core Lightning, so it would be helpful to add support for it. Currently, there are comments in the CSV files used in core Lightning that cause the parser to crash.
thread '<unnamed>' panicked at 'Unknown Token CSVToken { ty: LiteralString, val: "#gossip_storemessages:messagespersistedinthegossip_store" }', frontend_csv/src/parser/parser.rs:281:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
this should be done inside the Lexer
vincenzopalazzo commented
Fixed in 49b231e