support literal suffixes

This commit is contained in:
Aleksey Kladov 2018-12-27 15:03:18 +03:00
parent 73ded3c63c
commit 359e70d1b2
7 changed files with 40 additions and 2 deletions

View file

@ -27,6 +27,10 @@ pub(super) fn validate_byte_node(node: ast::Byte, errors: &mut Vec<SyntaxError>)
errors.push(SyntaxError::new(UnclosedByte, literal_range));
}
if let Some(range) = components.suffix {
errors.push(SyntaxError::new(InvalidSuffix, range));
}
if len == 0 {
errors.push(SyntaxError::new(EmptyByte, literal_range));
}