Skip to content

Commit

Permalink
Add a FIXME about parsing of [] patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed May 23, 2024
1 parent e1e9c87 commit 109e615
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/match_rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ impl<'a> PatternParser<'a> {
}
}

// FIXME: I think this is a missunderstanding of []. It is
// supposed to behave like in normal RegExps, i.e. like a set
fn characters(&mut self) -> Result<Pattern, ParseError> {
if self.chars.peek() == Some(&'[') {
self.consume('[')?;
Expand Down

0 comments on commit 109e615

Please sign in to comment.