(readescape): Don't complain for \% unless pedantic.

From-SVN: r4575
This commit is contained in:
Richard Stallman 1993-05-26 06:21:37 +00:00
parent 208dffa5cd
commit 3285fe92de

View File

@ -1012,6 +1012,8 @@ readescape (ignore_ptr)
case '(':
case '{':
case '[':
/* `\%' is used to prevent SCCS from getting confused. */
case '%':
if (pedantic)
pedwarn ("non-ANSI escape sequence `\\%c'", c);
return c;