mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
replace todo with fixme
This commit is contained in:
parent
2394a2ee35
commit
4fd8cfd6ad
29 changed files with 71 additions and 71 deletions
|
@ -85,7 +85,7 @@ pub(super) fn is_ascii_escape(code: char) -> bool {
|
|||
fn validate_ascii_code_escape(text: &str, range: TextRange, errors: &mut Vec<SyntaxError>) {
|
||||
// An AsciiCodeEscape has 4 chars, example: `\xDD`
|
||||
if !text.is_ascii() {
|
||||
// TODO: Give a more precise error message (say what the invalid character was)
|
||||
// FIXME: Give a more precise error message (say what the invalid character was)
|
||||
errors.push(SyntaxError::new(AsciiCodeEscapeOutOfRange, range));
|
||||
} else if text.chars().count() < 4 {
|
||||
errors.push(SyntaxError::new(TooShortAsciiCodeEscape, range));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue