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
#[derive(Logos,Debug,Clone,Copy,PartialEq,Eq,Hash)]#[logos(skip "[ \t\r\n]+")]pubenumTokenKind2{#[regex(r"/dts-v1")]DtsV1,// Removing this makes the slash match be `/d` instead of `/dt`#[regex(r"/dfoo")]Dfoo,#[regex(r"/[a-z-]+/")]UnknownDirective,/// A lex error!!Unrecognized,#[regex(r#"[a-z-]+"#)]Ident,#[token("/")]Slash,}
With input /dts-v (plus newline) produces the following output:
Slash "/d" 0..2
Ident "ts-v" 2..6
Should be
Slash "/" 0..1
Ident "dts-v" 1..6
With /dts- or /dts-vv it just errors?
The text was updated successfully, but these errors were encountered:
May be related to #181 ?
With input
/dts-v
(plus newline) produces the following output:Should be
With
/dts-
or/dts-vv
it just errors?The text was updated successfully, but these errors were encountered: