aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_tree.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-10-12 01:46:22 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-10-12 01:47:31 -0700
commit77e358a001eea9a36e0c466b0af253d992c370bd (patch)
tree49efc527ae6f4f9e1da88c1ed970f5a714f40d7f /parse_tree.cpp
parent5490f54d005dcc9b35409315aefc698203b81ff1 (diff)
Support for parsing e.g. 'command --' as a plain statement, instead of
executing the command '--'.
Diffstat (limited to 'parse_tree.cpp')
-rw-r--r--parse_tree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse_tree.cpp b/parse_tree.cpp
index a1acdb13..793715ec 100644
--- a/parse_tree.cpp
+++ b/parse_tree.cpp
@@ -784,6 +784,8 @@ static parse_keyword_t keyword_for_token(token_type tok, const wchar_t *tok_txt)
{L"not", parse_keyword_not},
{L"command", parse_keyword_command},
{L"builtin", parse_keyword_builtin},
+ {L"-", parse_keyword_dash},
+ {L"--", parse_keyword_dashdash},
{L"-h", parse_keyword_dash_h},
{L"--help", parse_keyword_dashdash_help}
};