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/string.rs | |
parent | 73ded3c63ca2522b7bb6ca8eb7834c5adc1a3511 (diff) |
support literal suffixes
Diffstat (limited to 'crates/ra_syntax/src/validation/string.rs')
-rw-r--r-- | crates/ra_syntax/src/validation/string.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/validation/string.rs b/crates/ra_syntax/src/validation/string.rs index 456180ab6..ff1fb6edc 100644 --- a/crates/ra_syntax/src/validation/string.rs +++ b/crates/ra_syntax/src/validation/string.rs | |||
@@ -27,6 +27,10 @@ pub(crate) fn validate_string_node(node: ast::String, errors: &mut Vec<SyntaxErr | |||
27 | if !components.has_closing_quote { | 27 | if !components.has_closing_quote { |
28 | errors.push(SyntaxError::new(UnclosedString, literal_range)); | 28 | errors.push(SyntaxError::new(UnclosedString, literal_range)); |
29 | } | 29 | } |
30 | |||
31 | if let Some(range) = components.suffix { | ||
32 | errors.push(SyntaxError::new(InvalidSuffix, range)); | ||
33 | } | ||
30 | } | 34 | } |
31 | 35 | ||
32 | #[cfg(test)] | 36 | #[cfg(test)] |