aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/yellow/syntax_error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/yellow/syntax_error.rs')
-rw-r--r--crates/ra_syntax/src/yellow/syntax_error.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/yellow/syntax_error.rs b/crates/ra_syntax/src/yellow/syntax_error.rs
index e2e660975..c524adf39 100644
--- a/crates/ra_syntax/src/yellow/syntax_error.rs
+++ b/crates/ra_syntax/src/yellow/syntax_error.rs
@@ -98,12 +98,16 @@ impl fmt::Display for SyntaxErrorKind {
98 UnclosedChar => write!(f, "Unclosed char literal"), 98 UnclosedChar => write!(f, "Unclosed char literal"),
99 LongChar => write!(f, "Char literal should be one character long"), 99 LongChar => write!(f, "Char literal should be one character long"),
100 TooShortAsciiCodeEscape => write!(f, "Escape sequence should have two digits"), 100 TooShortAsciiCodeEscape => write!(f, "Escape sequence should have two digits"),
101 AsciiCodeEscapeOutOfRange => write!(f, "Escape sequence should be between \\x00 and \\x7F"), 101 AsciiCodeEscapeOutOfRange => {
102 write!(f, "Escape sequence should be between \\x00 and \\x7F")
103 }
102 MalformedAsciiCodeEscape => write!(f, "Escape sequence should be a hexadecimal number"), 104 MalformedAsciiCodeEscape => write!(f, "Escape sequence should be a hexadecimal number"),
103 UnclosedUnicodeEscape => write!(f, "Missing `}}`"), 105 UnclosedUnicodeEscape => write!(f, "Missing `}}`"),
104 MalformedUnicodeEscape => write!(f, "Malformed unicode escape sequence"), 106 MalformedUnicodeEscape => write!(f, "Malformed unicode escape sequence"),
105 EmptyUnicodeEcape => write!(f, "Empty unicode escape sequence"), 107 EmptyUnicodeEcape => write!(f, "Empty unicode escape sequence"),
106 OverlongUnicodeEscape => write!(f, "Unicode escape sequence should have at most 6 digits"), 108 OverlongUnicodeEscape => {
109 write!(f, "Unicode escape sequence should have at most 6 digits")
110 }
107 UnicodeEscapeOutOfRange => write!(f, "Unicode escape code should be at most 0x10FFFF"), 111 UnicodeEscapeOutOfRange => write!(f, "Unicode escape code should be at most 0x10FFFF"),
108 ParseError(msg) => write!(f, "{}", msg.0), 112 ParseError(msg) => write!(f, "{}", msg.0),
109 } 113 }