We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a95ecbc commit 0954dcfCopy full SHA for 0954dcf
src/fallback.rs
@@ -1158,12 +1158,13 @@ fn cooked_byte(input: Cursor) -> PResult<()> {
1158
}
1159
1160
1161
-named!(character -> (), do_parse!(
1162
- punct!("'") >>
1163
- cooked_char >>
1164
- tag!("'") >>
1165
- (())
1166
-));
+fn character(input: Cursor) -> PResult<()> {
+ let input = skip_whitespace(input);
+ let input = input.expect("'")?;
+ let (input, ()) = cooked_char(input)?;
+ Ok((input, ()))
1167
+}
1168
1169
fn cooked_char(input: Cursor) -> PResult<()> {
1170
let mut chars = input.char_indices();
0 commit comments