Lines Matching full:some
161 Some(ch) if is_ident_continue(ch) => Err(Reject), in word_break()
162 Some(_) | None => Ok(input), in word_break()
186 Some(first) => first, in token_stream()
190 Some((lo, _frame)) => { in token_stream()
196 Some(_frame) => return Err(LexError { span: Span {} }), in token_stream()
200 if let Some(open_delimiter) = match first { in token_stream()
201 b'(' if !input.starts_with(ERROR) => Some(Delimiter::Parenthesis), in token_stream()
202 b'[' => Some(Delimiter::Bracket), in token_stream()
203 b'{' => Some(Delimiter::Brace), in token_stream()
212 } else if let Some(close_delimiter) = match first { in token_stream()
213 b')' => Some(Delimiter::Parenthesis), in token_stream()
214 b']' => Some(Delimiter::Bracket), in token_stream()
215 b'}' => Some(Delimiter::Brace), in token_stream()
219 Some(frame) => frame, in token_stream()
324 Some((_, ch)) if is_ident_start(ch) => {} in ident_not_raw()
385 while let Some((i, ch)) = chars.next() { in cooked_string()
392 Some((_, '\n')) => {} in cooked_string()
396 Some((_, 'x')) => { in cooked_string()
399 Some((_, 'n' | 'r' | 't' | '\\' | '\'' | '"' | '0')) => {} in cooked_string()
400 Some((_, 'u')) => { in cooked_string()
403 Some((newline, ch @ ('\n' | '\r'))) => { in cooked_string()
419 while let Some((i, byte)) = bytes.next() { in raw_string()
426 Some((_, b'\n')) => {} in raw_string()
447 while let Some((offset, b)) = bytes.next() { in cooked_byte_string()
454 Some((_, b'\n')) => {} in cooked_byte_string()
458 Some((_, b'x')) => { in cooked_byte_string()
461 Some((_, b'n' | b'r' | b't' | b'\\' | b'0' | b'\'' | b'"')) => {} in cooked_byte_string()
462 Some((newline, b @ (b'\n' | b'\r'))) => { in cooked_byte_string()
496 while let Some((i, byte)) = bytes.next() { in raw_byte_string()
503 Some((_, b'\n')) => {} in raw_byte_string()
529 while let Some((i, byte)) = bytes.next() { in raw_c_string()
536 Some((_, b'\n')) => {} in raw_c_string()
549 while let Some((i, ch)) = chars.next() { in cooked_c_string()
556 Some((_, '\n')) => {} in cooked_c_string()
560 Some((_, 'x')) => { in cooked_c_string()
563 Some((_, 'n' | 'r' | 't' | '\\' | '\'' | '"')) => {} in cooked_c_string()
564 Some((_, 'u')) => { in cooked_c_string()
569 Some((newline, ch @ ('\n' | '\r'))) => { in cooked_c_string()
587 Some(b'\\') => match bytes.next().map(|(_, b)| b) { in byte()
588 Some(b'x') => backslash_x_byte(&mut bytes).is_ok(), in byte()
589 Some(b'n' | b'r' | b't' | b'\\' | b'0' | b'\'' | b'"') => true, in byte()
609 Some('\\') => match chars.next().map(|(_, ch)| ch) { in character()
610 Some('x') => backslash_x_char(&mut chars).is_ok(), in character()
611 Some('u') => backslash_u(&mut chars).is_ok(), in character()
612 Some('n' | 'r' | 't' | '\\' | '0' | '\'' | '"') => true, in character()
628 Some((_, ch)) => match ch {
701 Some((_, b @ (b' ' | b'\t' | b'\n' | b'\r'))) => { in trailing_backslash()
704 Some((offset, _)) => { in trailing_backslash()
715 if let Some(ch) = rest.chars().next() { in float()
726 Some(ch) if '0' <= ch && ch <= '9' => {} in float_digits()
733 while let Some(&ch) = chars.peek() { in float_digits()
775 while let Some(&ch) = chars.peek() { in float_digits()
810 if let Some(ch) = rest.chars().next() { in int()
901 Some(ch) => ch, in punct_char()
927 while let Some(cr) = scan_for_bare_cr.find('\r') { in doc_comment()