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

@@ -31,7 +31,10 @@ pub(super) fn validate_char_node(node: ast::Char, 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 {