Commit dad112ca by Richard Stallman

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

From-SVN: r2697
parent cee85023
...@@ -905,8 +905,10 @@ readescape (ignore_ptr) ...@@ -905,8 +905,10 @@ readescape (ignore_ptr)
#endif #endif
return TARGET_VT; return TARGET_VT;
case 'e':
case 'E': case 'E':
pedwarn ("non-ANSI-standard escape sequence, `\\E'"); if (pedantic)
pedwarn ("non-ANSI-standard escape sequence, `\\%c'", c);
return 033; return 033;
case '?': case '?':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment