diff --git a/src/parse/helpers.rs b/src/parse/helpers.rs index bff2b96..c622b86 100644 --- a/src/parse/helpers.rs +++ b/src/parse/helpers.rs @@ -23,6 +23,7 @@ fn is_character_word_boundary(c: char) -> bool | '*' | '/' | '%' + | '|' => true, _ => false, } @@ -71,6 +72,7 @@ mod tests assert_eq!(word_boundary("*rest"), Ok(("*rest", ()))); assert_eq!(word_boundary("/rest"), Ok(("/rest", ()))); assert_eq!(word_boundary("%rest"), Ok(("%rest", ()))); + assert_eq!(word_boundary("|rest"), Ok(("|rest", ()))); assert!(word_boundary("0").is_err()); assert!(word_boundary("rest").is_err()); }