single ')' should be an read error

This commit is contained in:
Yuichi Nishiwaki 2014-07-27 18:35:50 +09:00
parent 9e56142331
commit 6a0cc4c9f7
1 changed files with 2 additions and 0 deletions

View File

@ -668,6 +668,8 @@ read_nullable(pic_state *pic, struct pic_port *port, char c)
}
switch (c) {
case ')':
read_error(pic, "unmatched parenthesis");
case ';':
return read_comment(pic, port, c);
case '#':