2 unstable releases
0.3.0 | Jun 24, 2020 |
---|---|
0.2.1 |
|
0.2.0 |
|
0.1.0 | Jun 23, 2020 |
#53 in #white-space
11KB
230 lines
This example shows an example of how to parse an escaped string. The rules for the string are similar to JSON and rust. A string is:
- Enclosed by double quotes
- Can contain any raw unescaped code point besides \ and "
- Matches the following escape sequences: \b, \f, \n, \r, \t, ", \, /
- Matches code points like Rust: \u{XXXX}, where XXXX can be up to 6 hex characters
- an escape followed by whitespace consumes all whitespace between the escape and the next non-whitespace character
Dependencies
~1MB
~18K SLoC