mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-23 07:29:54 +00:00
Added comment to string parser
This commit is contained in:
parent
6c15061f61
commit
dba7d449c8
@ -147,6 +147,10 @@ fn parse_string<'a, E: ParseError<&'a str>>(input: &'a str) -> IResult<&'a str,
|
||||
},
|
||||
);
|
||||
|
||||
// Finally, parse the string. Note that, if `build_string` could accept a raw
|
||||
// " character, the closing delimiter " would never match. When using
|
||||
// `delimited` with a looping parser (like fold_many0), be sure that the
|
||||
// loop won't accidentally match your closing delimiter!
|
||||
delimited(char('"'), build_string, char('"'))(input)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user