Sam O'Brien
Sam O'Brien
Solved by #491 The correct output is actually to return an `Int` spanning `b"-0"` since that is a longer match than just matching a `Dash` spanning `b"-"`. ```rust mod issue_461...
Solved by #491 After applying the fix to UriValue, the following passes ```rust mod issue_467 { use logos::Logos; #[derive(Logos, Debug, PartialEq)] #[logos(skip r"[ \r\t\n\f]+")] #[logos(error = String)] pub enum Token
Fixed by #491. Both test cases compile and pass verbatim.
Solved by #491 The supplied example no longer crashes during compilation.
Fixed by #491!
Fixed by #491 The following passes ```rust mod issue_277 { use logos::Logos; #[derive(Logos, PartialEq, Eq, Debug)] #[logos(skip r"[ \t\n\f]+")] pub enum Token
Lalrpop `master` output: ``` ./src\grammar.lalrpop:5:5: 5:5: Conflict detected when in this state: B = A (*) ["a", "x", "y", Eof] C = A (*) ["a", "x", "y", Eof] and looking...
I've been looking into the sample you sent. It seems like there are multiple overlapping issues going on. The most obvious one is the state graph generated seems to have...
Fixed by #491 The following compiles: ```rust mod issue_258 { use logos::Logos; #[derive(Logos)] #[logos(skip r".*->.+\[")] enum Token { #[regex(r"->")] Arrow, } } ```
The solution here is to match the first occurrence as a token, then use a callback to search for the closing half (the backreference), then finally call the [`Lexer::bump`](https://docs.rs/logos/latest/logos/struct.Lexer.html#method.bump) function....