git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@938
4a8a32a2-be11-0410-ad9d-
d568d2c75423
char *stringLiteral();
char *currFname;
-extern int lineno ;
+extern int lineno, column;
extern char *filename ;
extern char *fullSrcFileName ;
int yylineno = 1 ;
"\r\n" { count(); }
"\n" { count(); }
[ \t\v\f] { count(); }
+\\ {
+ char ch=input();
+ if (ch!='\n') {
+ werror (W_STRAY_BACKSLASH, column);
+ unput(ch);
+ }
+}
. { count() ; }
%%
while ((ch = input()) && (isspace(ch) || ch=='\\')) {
switch (ch) {
case '\\':
- //werror (W_STRAY_BACKSLASH)
break;
case '\n':
yylineno++;