(readescape): Support \e like \E. Warn only if -pedantic.

From-SVN: r2697
This commit is contained in:
Richard Stallman 1992-11-06 08:08:51 +00:00
parent cee850230f
commit dad112cafd
1 changed files with 3 additions and 1 deletions

View File

@ -905,8 +905,10 @@ readescape (ignore_ptr)
#endif
return TARGET_VT;
case 'e':
case 'E':
pedwarn ("non-ANSI-standard escape sequence, `\\E'");
if (pedantic)
pedwarn ("non-ANSI-standard escape sequence, `\\%c'", c);
return 033;
case '?':