Handle error case when yylex() failed to parse.

Remove the incorrect characters in rs.spec as well.

Change-Id: I7106e263e79239b970a7a1442efe2625dbe28298
2 files changed