cpplex.c (skip_escaped_newlines): Don't warn for spaces between backslash and newline, when inside a comment.

* cpplex.c (skip_escaped_newlines): Don't warn for spaces between
        backslash and newline, when inside a comment.

From-SVN: r38072
This commit is contained in:
Sylvain Pion 2000-12-06 21:12:59 +01:00 committed by Neil Booth
parent 46142b263c
commit c673abe457
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-12-06 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
* cpplex.c (skip_escaped_newlines): Don't warn for spaces between
backslash and newline, when inside a comment.
2000-12-06 Joseph S. Myers <jsm28@cam.ac.uk>
* invoke.texi: Use @table @samp instead of @itemize @minus for

View File

@ -246,7 +246,7 @@ skip_escaped_newlines (buffer, next)
break;
}
if (space)
if (space && !buffer->pfile->state.lexing_comment)
cpp_warning (buffer->pfile,
"backslash and newline separated by space");