summaryrefslogtreecommitdiffstats
path: root/parsing/parse.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-20 00:06:57 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-20 00:06:57 (EST)
commit6a78c02494504eafb437c605bdc6f9d160b3d35d (patch)
treec5348e22d45f6c103901e6e308b8513ab947acc1 /parsing/parse.sh
parent6944e19e75467d92140174e979898f35659f9dc6 (diff)
downloadeggshell-6a78c02494504eafb437c605bdc6f9d160b3d35d.zip
eggshell-6a78c02494504eafb437c605bdc6f9d160b3d35d.tar.gz
eggshell-6a78c02494504eafb437c605bdc6f9d160b3d35d.tar.bz2
Check only first word of simple commands for reseserved words
Diffstat (limited to 'parsing/parse.sh')
-rw-r--r--parsing/parse.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsing/parse.sh b/parsing/parse.sh
index 542f5ea..56a1d39 100644
--- a/parsing/parse.sh
+++ b/parsing/parse.sh
@@ -280,7 +280,7 @@ cmd_name()
{
dbg 'cmd_name()'
# TODO: Assignment
- if accept T_WORD; then
+ if accept T_CMDNAME; then
return 0
fi
return 1