[bugfix] EOF is a delimiter

This commit is contained in:
Yuichi Nishiwaki 2014-06-27 07:28:46 +09:00
parent bb43c8d9dc
commit 556a460663
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ peek(struct pic_port *port)
static bool
isdelim(char c)
{
return strchr("();,|\" \t\n\r", c) != NULL; /* ignores "#", "'" */
return c == EOF || strchr("();,|\" \t\n\r", c) != NULL; /* ignores "#", "'" */
}
static pic_value