tok_eop, to prevent Halibut tight-looping when a definition is the
last thing in a file.
git-svn-id: svn://svn.tartarus.org/sgt/halibut@9419
cda61777-01e9-0310-a592-
d414129be87e
rdadd(¯otext, L'\n');
rdadds(¯otext, t.text);
dtor(t), t = get_token(in);
rdadd(¯otext, L'\n');
rdadds(¯otext, t.text);
dtor(t), t = get_token(in);
- if (t.type == tok_eop) break;
+ if (t.type == tok_eop || t.type == tok_eof)
+ break;
}
macrodef(macros, rs.text, macrotext.text, fp);
continue; /* next paragraph */
}
macrodef(macros, rs.text, macrotext.text, fp);
continue; /* next paragraph */