static const char *const lex_keywords[] = {
"do", "else", "if", "while",
"break", "continue", "return", "goto",
- "for",
+ "for", "typedef",
/* types */
"int",
lex_addch(ch, file);
while ((ch = lex_getch(file)) != '*') {
if (ch == EOF)
- return error(ERROR_LEX, "malformatted comment", " ");
+ return error(ERROR_LEX, "malformatted comment at line %d", file->line);
else
lex_addch(ch, file);
}