aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/rc/lex.c')
-rw-r--r--sys/cmd/rc/lex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/cmd/rc/lex.c b/sys/cmd/rc/lex.c
index 6065981..596021b 100644
--- a/sys/cmd/rc/lex.c
+++ b/sys/cmd/rc/lex.c
@@ -386,7 +386,10 @@ yylex(void)
*w = 0;
node = token(Tword, lexer.buf);
- // TODO: keywords
+ if((c=iskeyword(lexer.buf))){
+ node->type = c;
+ lexer.hadword = 0;
+ }
node->quoted = 0;