From 359e70d1b20402ca9cc8731909daecfab598e55d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 27 Dec 2018 15:03:18 +0300 Subject: support literal suffixes --- crates/ra_syntax/src/yellow/syntax_error.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_syntax/src/yellow') diff --git a/crates/ra_syntax/src/yellow/syntax_error.rs b/crates/ra_syntax/src/yellow/syntax_error.rs index c32ee650d..534f3511e 100644 --- a/crates/ra_syntax/src/yellow/syntax_error.rs +++ b/crates/ra_syntax/src/yellow/syntax_error.rs @@ -93,6 +93,7 @@ pub enum SyntaxErrorKind { OverlongUnicodeEscape, UnicodeEscapeOutOfRange, UnclosedString, + InvalidSuffix, } #[derive(Debug, Clone, PartialEq, Eq, Hash)] @@ -134,6 +135,7 @@ impl fmt::Display for SyntaxErrorKind { } UnicodeEscapeOutOfRange => write!(f, "Unicode escape code should be at most 0x10FFFF"), UnclosedString => write!(f, "Unclosed string literal"), + InvalidSuffix => write!(f, "Invalid literal suffix"), ParseError(msg) => write!(f, "{}", msg.0), } } -- cgit v1.2.3