tesujimath / beancount-parser-lima

A Beancount parser in Rust
https://docs.rs/beancount-parser-lima/latest/beancount_parser_lima/
Other
9 stars 0 forks source link

Regex for currency causes lexer to fail to match slash as a token #4

Closed tesujimath closed 9 months ago

tesujimath commented 9 months ago

Because of the way Logos currently works, text such as 1/1.45 fails to lex as NUMBER, SLASH, NUMBER, which would enable it to be parsed as an expression. Instead it tries for NUMBER, CURRENCY, and fails with a Lexer error.

This is an open issue with Logos maciejhirsz/logos#315