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/char.rs | |
parent | a912b261d3e6c95430bf2116b15b3af2e112bc4b (diff) |
fix suffix ranges
Diffstat (limited to 'crates/ra_syntax/src/validation/char.rs')
-rw-r--r-- | crates/ra_syntax/src/validation/char.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/validation/char.rs b/crates/ra_syntax/src/validation/char.rs index 50184aaf8..19cd3830f 100644 --- a/crates/ra_syntax/src/validation/char.rs +++ b/crates/ra_syntax/src/validation/char.rs | |||
@@ -31,7 +31,10 @@ pub(super) fn validate_char_node(node: ast::Char, errors: &mut Vec<SyntaxError>) | |||
31 | } | 31 | } |
32 | 32 | ||
33 | if let Some(range) = components.suffix { | 33 | if let Some(range) = components.suffix { |
34 | errors.push(SyntaxError::new(InvalidSuffix, range)); | 34 | errors.push(SyntaxError::new( |
35 | InvalidSuffix, | ||
36 | range + literal_range.start(), | ||
37 | )); | ||
35 | } | 38 | } |
36 | 39 | ||
37 | if len == 0 { | 40 | if len == 0 { |