Mercurial > hg > octave-nkf
diff src/lex.l @ 3867:81552337b120
[project @ 2002-01-03 18:31:08 by jwe]
author | jwe |
---|---|
date | Thu, 03 Jan 2002 18:31:09 +0000 |
parents | 8986086e3e0f |
children | c21ae2c5840f |
line wrap: on
line diff
--- a/src/lex.l +++ b/src/lex.l @@ -719,13 +719,11 @@ . { current_input_column++; - if (static_cast<int> (yytext[0]) == EOF) - error ("unexpected end of file near line %d, column %d", - input_line_number, current_input_column); - else - error ("invalid character `%s' (ASCII %d) near line %d, column %d", - undo_string_escape (yytext[0]), static_cast<int> (yytext[0]), - input_line_number, current_input_column); + // EOF can't happen here (we catch it above). + + error ("invalid character `%s' (ASCII %d) near line %d, column %d", + undo_string_escape (yytext[0]), static_cast<int> (yytext[0]), + input_line_number, current_input_column); return LEXICAL_ERROR; }