diff options
author | nicm <nicm> | 2019-05-29 20:05:14 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-29 20:05:14 +0000 |
commit | 7dced376737ef685e09fd5a49161ca2bf423e91b (patch) | |
tree | 6f8d776bf67584d497386832b172132cd8703dbf /cmd-parse.y | |
parent | c17edd594e8088d2355102a8ca58f4b256c59397 (diff) | |
download | rtmux-7dced376737ef685e09fd5a49161ca2bf423e91b.tar.gz rtmux-7dced376737ef685e09fd5a49161ca2bf423e91b.tar.bz2 rtmux-7dced376737ef685e09fd5a49161ca2bf423e91b.zip |
Use VIS_CSTYLE for the arguments and add the missing escapes it can
generate to the parser.
Diffstat (limited to 'cmd-parse.y')
-rw-r--r-- | cmd-parse.y | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmd-parse.y b/cmd-parse.y index a235fde1..a623caa5 100644 --- a/cmd-parse.y +++ b/cmd-parse.y @@ -1118,9 +1118,24 @@ yylex_token_escape(char **buf, size_t *len) switch (ch) { case EOF: return (0); + case 'a': + ch = '\a'; + break; + case 'b': + ch = '\b'; + break; case 'e': ch = '\033'; break; + case 'f': + ch = '\f'; + break; + case 's': + ch = ' '; + break; + case 'v': + ch = '\v'; + break; case 'r': ch = '\r'; break; |