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

@@ -29,7 +29,10 @@ pub(crate) fn validate_string_node(node: ast::String, errors: &mut Vec<SyntaxErr
}
if let Some(range) = components.suffix {
errors.push(SyntaxError::new(InvalidSuffix, range));
errors.push(SyntaxError::new(
InvalidSuffix,
range + literal_range.start(),
));
}
}