aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/syntax.y
diff options
context:
space:
mode:
authorNicholas Noll <nnoll523@gmail.com>2021-10-26 12:35:22 -0700
committerNicholas Noll <nnoll523@gmail.com>2021-10-26 12:35:22 -0700
commit2416a8654e3c1a4b74fcc0379dac5294670a1f46 (patch)
treeeb63703a92b035752674b9ab97a310fe58b2862a /sys/cmd/rc/syntax.y
parent47e1e78da8eba4d755179d61a16f2c7920d2da39 (diff)
feat(rc): keywords now recognized. for and while loop
Prototypes for loops sketched. This required recognizing keywords and returning from yylex. Debugging/testing will be required.
Diffstat (limited to 'sys/cmd/rc/syntax.y')
-rw-r--r--sys/cmd/rc/syntax.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cmd/rc/syntax.y b/sys/cmd/rc/syntax.y
index 58bef16..0bdc776 100644
--- a/sys/cmd/rc/syntax.y
+++ b/sys/cmd/rc/syntax.y
@@ -129,7 +129,7 @@ nonkeyword:
//| Tredir block { $$ = hangchild1($1, $2, 0); $$->type = Tpipefd; }
keyword:
- Tin|Tfor|Twhile|Tif|Telse|Tswitch|Tcase|Tbang|Tsubshell|Tfunc
+ Tfor|Tin|Twhile|Tif|Telse|Tswitch|Tcase|Tbang|Tsubshell|Tfunc
words:
/* empty */ { $$ = nil; }