From: johanknol Date: Sat, 23 Jun 2001 17:41:04 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=f9c61904bf1f26784985713020793610482f49cd;p=fw%2Fsdcc *** empty log message *** git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@939 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCC.lex b/src/SDCC.lex index b4c5cfb4..9607a9d4 100644 --- a/src/SDCC.lex +++ b/src/SDCC.lex @@ -416,6 +416,10 @@ char *stringLiteral () { while ((ch = input()) && (isspace(ch) || ch=='\\')) { switch (ch) { case '\\': + if ((ch=input())!='\n') { + werror (W_STRAY_BACKSLASH, column); + unput(ch); + } break; case '\n': yylineno++;