re-ignore the ! symbol when generating a good error message

This commit is contained in:
Irevoire
2021-11-09 17:08:04 +01:00
parent bff48681d2
commit 7c3017734a

View File

@ -70,7 +70,7 @@ fn is_value_component(c: char) -> bool {
}
fn is_syntax_component(c: char) -> bool {
c.is_whitespace() || ['(', ')', '=', '<', '>'].contains(&c)
c.is_whitespace() || ['(', ')', '=', '<', '>', '!'].contains(&c)
}
#[cfg(test)]