Skip to content

Commit

Permalink
fix and move
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Feb 16, 2024
1 parent 7301705 commit bbf64da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion logos-codegen/src/graph/regex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl<Leaf: Disambiguate + Debug> Graph<Leaf> {
None => then,
};

self.parse_mir(*mir, then, Some(miss), reserved, false)
self.parse_mir(*mir, then, Some(miss), reserved, true)
}
Mir::Alternation(alternation) => {
let mut fork = Fork::new().miss(miss);
Expand Down
5 changes: 2 additions & 3 deletions src/tests.rs → tests/tests/unicode_dot.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::Logos;
use logos::Logos as _;
use logos_derive::Logos;

#[derive(Logos, Debug, PartialEq)]
#[logos(crate = crate)]
enum TestUnicodeDot {
#[regex(".")]
Dot,
Expand All @@ -24,7 +24,6 @@ fn test_unicode_dot_str_unicode() {
}

#[derive(Logos, Debug, PartialEq)]
#[logos(crate = crate)]
enum TestUnicodeDotBytes {
#[regex(".", priority = 100)]
Dot,
Expand Down

0 comments on commit bbf64da

Please sign in to comment.