diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-11-30 18:13:47 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-11-30 18:17:48 +0100 |
commit | b94c01f29408600721c7e3302392e9015fc7bafd (patch) | |
tree | 828d85dd734968f70b23f5aea9c6ab0ffae593c0 /lib.c | |
parent | ac5cb8736f89f8da0c1bbe407d7d4ae9df530a5c (diff) |
syntax: recognize single-char escapes in regex literals again
Ensure that the single char escapes `\a`, `\b`, `\e`, `\f`, `\n`,
`\r`, `\t` and `\v` keep working. Since they're not part of the POSIX
extended regular expression spec, they're not handled by the RE engine
so we need to substitute them by their actual byte value while parsing
the literal.
Fixes: ac5cb87 ("syntax: fix string and regex literal parsing quirks")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib.c')
0 files changed, 0 insertions, 0 deletions