mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
fix suffix ranges
This commit is contained in:
parent
a912b261d3
commit
49b0fe20ab
6 changed files with 95 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue