diff options
author | Aleksey Kladov <[email protected]> | 2018-12-27 12:10:30 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-27 12:10:30 +0000 |
commit | 49b0fe20ab6aa752df3764908b7c21f4b1827e52 (patch) | |
tree | 3adb0077bd7d7a34376d87cbb0ae7ea5b942d532 /crates/ra_syntax/src/validation/byte.rs | |
parent | a912b261d3e6c95430bf2116b15b3af2e112bc4b (diff) |
fix suffix ranges
Diffstat (limited to 'crates/ra_syntax/src/validation/byte.rs')
-rw-r--r-- | crates/ra_syntax/src/validation/byte.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/validation/byte.rs b/crates/ra_syntax/src/validation/byte.rs index 2f9b7fac7..d0897eeed 100644 --- a/crates/ra_syntax/src/validation/byte.rs +++ b/crates/ra_syntax/src/validation/byte.rs | |||
@@ -28,7 +28,10 @@ pub(super) fn validate_byte_node(node: ast::Byte, errors: &mut Vec<SyntaxError>) | |||
28 | } | 28 | } |
29 | 29 | ||
30 | if let Some(range) = components.suffix { | 30 | if let Some(range) = components.suffix { |
31 | errors.push(SyntaxError::new(InvalidSuffix, range)); | 31 | errors.push(SyntaxError::new( |
32 | InvalidSuffix, | ||
33 | range + literal_range.start(), | ||
34 | )); | ||
32 | } | 35 | } |
33 | 36 | ||
34 | if len == 0 { | 37 | if len == 0 { |