aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-09-30 13:57:36 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-09-30 13:57:36 -0700
commitcbe615224da57e96cfe609eb92f115e0d45f0f28 (patch)
tree76a75b5e03f8433733b4bf96ac567d10c9e053ed /parser.cpp
parent6c70ed79ae523ea730ba29ff2e84da41a6b5e230 (diff)
Make tok_last_type return an enum token_type instead of int
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/parser.cpp b/parser.cpp
index 93e068d7..49e5a966 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -154,7 +154,7 @@ The fish parser. Contains functions for parsing and evaluating code.
/**
Error message for Posix-style assignment
*/
-#define COMMAND_ASSIGN_ERR_MSG _( L"Unknown command '%ls'. Did you mean 'set %ls %ls'? For information on assigning values to variables, see the help section on the set command by typing 'help set'.")
+#define COMMAND_ASSIGN_ERR_MSG _( L"Unknown command '%ls'. Did you mean 'set %ls %ls'? See the help section on the set command by typing 'help set'.")
/**
Error for invalid redirection token
@@ -2012,8 +2012,9 @@ int parser_t::parse_job(process_t *p,
if (! has_command && ! use_implicit_cd)
{
- int tmp;
const wchar_t *cmd = args.at(0).completion.c_str();
+
+ fprintf(stderr, "arg count: %lu\n", args.size());
/*
We couldn't find the specified command.
@@ -2095,7 +2096,7 @@ int parser_t::parse_job(process_t *p,
event_fire_generic(L"fish_command_not_found", &event_args);
}
- tmp = current_tokenizer_pos;
+ int tmp = current_tokenizer_pos;
current_tokenizer_pos = tok_get_pos(tok);
fwprintf(stderr, L"%ls", parser_t::current_line());