fix suffix ranges

This commit is contained in:
Aleksey Kladov 2018-12-27 15:10:30 +03:00
parent a912b261d3
commit 49b0fe20ab
6 changed files with 95 additions and 4 deletions

View file

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