mirror of https://github.com/dirtbags/tanks.git
Fix runaway comment bug (finally!)
This commit is contained in:
parent
4478c14434
commit
1463bd2a3a
|
@ -1,2 +0,0 @@
|
||||||
50 0 0 1
|
|
||||||
70 0 50 0
|
|
9
forf.c
9
forf.c
|
@ -586,8 +586,13 @@ forf_parse_stream(struct forf_env *env,
|
||||||
|
|
||||||
/* Handle comments */
|
/* Handle comments */
|
||||||
if (comment) {
|
if (comment) {
|
||||||
if (')' == c) {
|
switch (c) {
|
||||||
comment = 0;
|
case EOF:
|
||||||
|
env->error = forf_error_parse;
|
||||||
|
return pos;
|
||||||
|
case ')':
|
||||||
|
comment = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue