diff options
author | Aleksey Kladov <[email protected]> | 2018-12-27 12:03:18 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-27 12:03:18 +0000 |
commit | 359e70d1b20402ca9cc8731909daecfab598e55d (patch) | |
tree | 7c0cfa82de89b62597bdb897c9484f9d5b02cd90 /crates/ra_syntax/src/validation/byte_string.rs | |
parent | 73ded3c63ca2522b7bb6ca8eb7834c5adc1a3511 (diff) |
support literal suffixes
Diffstat (limited to 'crates/ra_syntax/src/validation/byte_string.rs')
-rw-r--r-- | crates/ra_syntax/src/validation/byte_string.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/validation/byte_string.rs b/crates/ra_syntax/src/validation/byte_string.rs index 2f98472f4..bf4c934a7 100644 --- a/crates/ra_syntax/src/validation/byte_string.rs +++ b/crates/ra_syntax/src/validation/byte_string.rs | |||
@@ -32,6 +32,10 @@ pub(crate) fn validate_byte_string_node(node: ast::ByteString, errors: &mut Vec< | |||
32 | if !components.has_closing_quote { | 32 | if !components.has_closing_quote { |
33 | errors.push(SyntaxError::new(UnclosedString, literal_range)); | 33 | errors.push(SyntaxError::new(UnclosedString, literal_range)); |
34 | } | 34 | } |
35 | |||
36 | if let Some(range) = components.suffix { | ||
37 | errors.push(SyntaxError::new(InvalidSuffix, range)); | ||
38 | } | ||
35 | } | 39 | } |
36 | 40 | ||
37 | #[cfg(test)] | 41 | #[cfg(test)] |