From a0b8f38ab54ac451646aa00cd5e91b6c76f22a84 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:19 +0200 Subject: Merging upstream version 1.72.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/proc-macro2/src/parse.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'vendor/proc-macro2/src/parse.rs') diff --git a/vendor/proc-macro2/src/parse.rs b/vendor/proc-macro2/src/parse.rs index 21e324136..6c5cb414a 100644 --- a/vendor/proc-macro2/src/parse.rs +++ b/vendor/proc-macro2/src/parse.rs @@ -104,11 +104,15 @@ fn skip_whitespace(input: Cursor) -> Cursor { } } match byte { - b' ' | 0x09..=0x0d => { + b' ' | 0x09..=0x0c => { s = s.advance(1); continue; } - b if b.is_ascii() => {} + b'\r' if s.as_bytes().get(1) == Some(&b'\n') => { + s = s.advance(2); + continue; + } + b if b <= 0x7f => {} _ => { let ch = s.chars().next().unwrap(); if is_whitespace(ch) { @@ -456,7 +460,7 @@ fn cooked_byte_string(mut input: Cursor) -> Result { } _ => break, }, - b if b.is_ascii() => {} + b if b < 0x80 => {} _ => break, } } -- cgit v1.2.3