(readescape): Support \e like \E. Warn only if -pedantic.
From-SVN: r2697
This commit is contained in:
parent
cee850230f
commit
dad112cafd
|
@ -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 '?':
|
||||
|
|
Loading…
Reference in New Issue