You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I accidentally messed up one of my regexes and the binary that uses Logos started crashing. In debug it fails with stack overflow, in debug with GDB with a segmentation fault and in release it just hangs.
The expected behavior is a nice compile time error message.
This is the (sort of) minimal example:
#[derive(Logos, Debug)]
pub enum Token {
#[regex(r#""(?:|\\[^\n])*""#)]
String,
#[error]
Error,
}
fn main() {
let lexer = Token::lexer("\"fubar\"");
for (tok, span) in lexer.spanned() {
println!("{:?} ({:?})", tok, span);
}
}
rustc 1.64.0, logos 0.12.1.
The text was updated successfully, but these errors were encountered:
Hi, I accidentally messed up one of my regexes and the binary that uses Logos started crashing. In debug it fails with stack overflow, in debug with GDB with a segmentation fault and in release it just hangs.
The expected behavior is a nice compile time error message.
This is the (sort of) minimal example:
rustc 1.64.0, logos 0.12.1.
The text was updated successfully, but these errors were encountered: