aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_constants.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-04 02:53:34 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-04 02:54:08 -0800
commit79d14521db4c71250109785b8317aeceecd539c9 (patch)
treec2f8587332924e5887366d7edad98ff5f8c1950a /parse_constants.h
parent8d6b0c8d764ee6500301ecb937eb636216d9bcd4 (diff)
Support for error detection in arguments in new parser. Restores error
reporting for bad arguments (e.g. with bad variable names)
Diffstat (limited to 'parse_constants.h')
-rw-r--r--parse_constants.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/parse_constants.h b/parse_constants.h
index 884b76f7..8ff96407 100644
--- a/parse_constants.h
+++ b/parse_constants.h
@@ -179,6 +179,31 @@ typedef unsigned int parser_test_error_bits_t;
#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 issued on invalid variable name
+*/
+#define COMPLETE_VAR_DESC _( L"The '$' character begins a variable name. The character '%lc', which directly followed a '$', is not allowed as a part of a variable name, and variable names may not be zero characters long. To learn more about variable expansion in fish, type 'help expand-variable'.")
+
+/**
+ Error issued on $?
+*/
+#define COMPLETE_YOU_WANT_STATUS _( L"$? is not a valid variable in fish. If you want the exit status of the last command, try $status.")
+
+/**
+ Error issued on invalid variable name
+*/
+#define COMPLETE_VAR_NULL_DESC _( L"The '$' begins a variable name. It was given at the end of an argument. Variable names may not be zero characters long. To learn more about variable expansion in fish, type 'help expand-variable'.")
+
+/**
+ Error issued on invalid variable name
+*/
+#define COMPLETE_VAR_BRACKET_DESC _( L"Did you mean %ls{$%ls}%ls? The '$' character begins a variable name. A bracket, which directly followed a '$', is not allowed as a part of a variable name, and variable names may not be zero characters long. To learn more about variable expansion in fish, type 'help expand-variable'." )
+
+/**
+ Error issued on invalid variable name
+*/
+#define COMPLETE_VAR_PARAN_DESC _( L"Did you mean (COMMAND)? In fish, the '$' character is only used for accessing variables. To learn more about command substitution in fish, type 'help expand-command-substitution'.")
+
+/**
While block description
*/
#define WHILE_BLOCK N_( L"'while' block" )