(parse_escape): Support \E and \e like cc1:

they mean \033, and they generate a warning if pedantic.

From-SVN: r3410
This commit is contained in:
Richard Stallman 1993-02-02 22:14:40 +00:00
parent 585ec9386c
commit b670485b6a
1 changed files with 3 additions and 0 deletions

View File

@ -748,6 +748,9 @@ parse_escape (string_ptr)
case 'b':
return TARGET_BS;
case 'e':
case 'E':
if (pedantic)
pedwarn ("non-ANSI-standard escape sequence, `\\%c'", c);
return 033;
case 'f':
return TARGET_FF;