Skip to content

Commit

Permalink
Add \r back to lexer whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
developedby committed Mar 1, 2024
1 parent 3d7c4e8 commit 0102c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/term/parser/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub static STRINGS: GlobalPool<String> = GlobalPool::new();

#[derive(Logos, Debug, PartialEq, Clone)]
#[logos(error=LexingError)]
#[logos(skip r"[ \t\n\f]+")]
#[logos(skip r"[ \t\r\n\f]+")]
pub enum Token {
#[regex("[_.a-zA-Z][_.a-zA-Z0-9-]*", |lex| lex.slice().parse().ok().map(|s: String| STRINGS.get(s)))]
Name(GlobalString),
Expand Down

0 comments on commit 0102c48

Please sign in to comment.