summaryrefslogtreecommitdiff
path: root/parse/tok.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-01-14 19:44:14 -0500
committerOri Bernstein <ori@eigenstate.org>2014-01-14 19:44:14 -0500
commit26fef326df126ced69c6eb4f531b487de37e23c7 (patch)
tree3f35a354bca4e70627111821ac7d61e82eef63ed /parse/tok.c
parenta14644877bbb7cbe45cbd006f2773a3e4b9008a7 (diff)
downloadmc-26fef326df126ced69c6eb4f531b487de37e23c7.tar.gz
Add support for break/continue in loops.
Yeah, I resisted until now. Oh well.
Diffstat (limited to 'parse/tok.c')
-rw-r--r--parse/tok.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse/tok.c b/parse/tok.c
index 72edc8e..b1a0f05 100644
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -159,8 +159,10 @@ static void eatspace(void)
static int kwd(char *s)
{
static const struct {char* kw; int tt;} kwmap[] = {
+ {"break", Tbreak},
{"castto", Tcast},
{"const", Tconst},
+ {"continue", Tcontinue},
{"default", Tdefault},
{"elif", Telif},
{"else", Telse},