[bugfix] EOF is a delimiter

This commit is contained in:
Yuichi Nishiwaki
2014-06-27 08:55:01 +09:00
parent bb43c8d9dc
commit 556a460663
+1 -1
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