Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logos_derive stack overflow in regex macro #80

Closed
2over12 opened this issue Jun 21, 2019 · 1 comment
Closed

logos_derive stack overflow in regex macro #80

2over12 opened this issue Jun 21, 2019 · 1 comment

Comments

@2over12
Copy link

2over12 commented Jun 21, 2019

Not sure if this is related to the previous issues with the regex macro but this code results in stack overflow in the compiler.

extern crate logos;

use logos::Logos;

#[derive(Logos, Debug, PartialEq)]
enum Token {
    #[end]
    End,
    #[error]
    Error,
    #[regex = "[0-9]*.?[0-9]+"]
    Text,
}

fn main() {}
@maciejhirsz
Copy link
Owner

Aggregate into #70.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants