diff options
Diffstat (limited to 'crates/ra_syntax/src/yellow')
-rw-r--r-- | crates/ra_syntax/src/yellow/syntax_error.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/yellow/syntax_error.rs b/crates/ra_syntax/src/yellow/syntax_error.rs index df230293b..c32ee650d 100644 --- a/crates/ra_syntax/src/yellow/syntax_error.rs +++ b/crates/ra_syntax/src/yellow/syntax_error.rs | |||
@@ -117,7 +117,10 @@ impl fmt::Display for SyntaxErrorKind { | |||
117 | InvalidByteEscape => write!(f, "Invalid escape sequence"), | 117 | InvalidByteEscape => write!(f, "Invalid escape sequence"), |
118 | TooShortByteCodeEscape => write!(f, "Escape sequence should have two digits"), | 118 | TooShortByteCodeEscape => write!(f, "Escape sequence should have two digits"), |
119 | MalformedByteCodeEscape => write!(f, "Escape sequence should be a hexadecimal number"), | 119 | MalformedByteCodeEscape => write!(f, "Escape sequence should be a hexadecimal number"), |
120 | UnicodeEscapeForbidden => write!(f, "Unicode escapes are not allowed in byte literals or byte strings"), | 120 | UnicodeEscapeForbidden => write!( |
121 | f, | ||
122 | "Unicode escapes are not allowed in byte literals or byte strings" | ||
123 | ), | ||
121 | TooShortAsciiCodeEscape => write!(f, "Escape sequence should have two digits"), | 124 | TooShortAsciiCodeEscape => write!(f, "Escape sequence should have two digits"), |
122 | AsciiCodeEscapeOutOfRange => { | 125 | AsciiCodeEscapeOutOfRange => { |
123 | write!(f, "Escape sequence should be between \\x00 and \\x7F") | 126 | write!(f, "Escape sequence should be between \\x00 and \\x7F") |