Code

frontend: Don't ignore single characters in the scanner.
authorSebastian Harl <sh@tokkee.org>
Sat, 5 Apr 2014 17:49:47 +0000 (19:49 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 5 Apr 2014 17:49:47 +0000 (19:49 +0200)
This would lead to those characters be silently ignored at any place in the
input stream.

src/frontend/scanner.l

index 61f1743fa60560c69f2cf5835f9c49827e760b17..4dcd5e2a4f0cb196d986e769e77bb68cac7b97d7 100644 (file)
@@ -110,7 +110,7 @@ string              ('[^']*')
                return STRING;
        }
 
-.      { /* do nothing for now */ }
+.      { /* XXX: */ return yytext[0]; }
 
 %%