summaryrefslogtreecommitdiff
path: root/core/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/parser.c')
-rw-r--r--core/parser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/parser.c b/core/parser.c
index 79fda93..b5dc915 100644
--- a/core/parser.c
+++ b/core/parser.c
@@ -31,7 +31,8 @@ static const char *toktab[_TT_MAX] = {
[TT_TRUE] = TOKLIT("true"),
[TT_FALSE] = TOKLIT("false"),
[TT_INTLIT] = SYMTOK("int"),
- [TT_IDENT] = SYMTOK("ident")
+ [TT_IDENT] = SYMTOK("ident"),
+ [TT_COMMENT] = SYMTOK("comment")
};
static int
@@ -157,6 +158,8 @@ parse_begin(struct defconf_state *state)
}
break;
+ case TT_COMMENT:
+ break;
default:
trace_fatal(state, "got unexpected token: %s\n", TOKSTR(tok.type));
return -1;