*** empty log message ***
[fw/sdcc] / src / SDCC.lex
index b4c5cfb464f213302beb24a0fc9b49f78572a4b7..9607a9d4595b2e58cf5d547e687902b75dd3072f 100644 (file)
@@ -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++;