aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/validation/unescape.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/validation/unescape.rs')
-rw-r--r--crates/ra_syntax/src/validation/unescape.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/validation/unescape.rs b/crates/ra_syntax/src/validation/unescape.rs
index 4c3a7effc..1cb2433f3 100644
--- a/crates/ra_syntax/src/validation/unescape.rs
+++ b/crates/ra_syntax/src/validation/unescape.rs
@@ -173,7 +173,7 @@ fn scan_escape(first_char: char, chars: &mut Chars<'_>, mode: Mode) -> Result<ch
173 } 173 }
174 174
175 break std::char::from_u32(value).ok_or_else(|| { 175 break std::char::from_u32(value).ok_or_else(|| {
176 if value > 0x10FFFF { 176 if value > 0x0010_FFFF {
177 EscapeError::OutOfRangeUnicodeEscape 177 EscapeError::OutOfRangeUnicodeEscape
178 } else { 178 } else {
179 EscapeError::LoneSurrogateUnicodeEscape 179 EscapeError::LoneSurrogateUnicodeEscape