mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Split string lexing and run rustfmt
This commit is contained in:
parent
30cd4d5acb
commit
c96bfe7e2d
10 changed files with 548 additions and 521 deletions
|
@ -117,7 +117,10 @@ impl fmt::Display for SyntaxErrorKind {
|
|||
InvalidByteEscape => write!(f, "Invalid escape sequence"),
|
||||
TooShortByteCodeEscape => write!(f, "Escape sequence should have two digits"),
|
||||
MalformedByteCodeEscape => write!(f, "Escape sequence should be a hexadecimal number"),
|
||||
UnicodeEscapeForbidden => write!(f, "Unicode escapes are not allowed in byte literals or byte strings"),
|
||||
UnicodeEscapeForbidden => write!(
|
||||
f,
|
||||
"Unicode escapes are not allowed in byte literals or byte strings"
|
||||
),
|
||||
TooShortAsciiCodeEscape => write!(f, "Escape sequence should have two digits"),
|
||||
AsciiCodeEscapeOutOfRange => {
|
||||
write!(f, "Escape sequence should be between \\x00 and \\x7F")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue