diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-09 22:56:50 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-09 22:56:50 +0100 |
commit | fa128671e2c4115f79200e69bde21a1bd484cad9 (patch) | |
tree | e599cd8fe4f4f607f5d55abd0367352fa95ce273 /src/parser.h | |
parent | 01a4211b9bc358a80b306a720fad488585422b8b (diff) | |
download | sciteco-fa128671e2c4115f79200e69bde21a1bd484cad9.tar.gz |
revised U command: fail if no argument is provided
* there is no reasonable default value for U
* omitting the parameter for U might be a frequent programming error
* U can be colon-modified now, in which case it may be used
* to check for the presence of arguments in macros
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h index c19ef14..9cc8f07 100644 --- a/src/parser.h +++ b/src/parser.h @@ -179,6 +179,14 @@ public: : Error("Syntax error \"%c\" (%d)", chr, chr) {} }; + class ArgExpectedError : public Error { + public: + ArgExpectedError(const gchar *cmd) + : Error("Argument expected for <%s>", cmd) {} + ArgExpectedError(gchar cmd) + : Error("Argument expected for <%c>", cmd) {} + }; + class MoveError : public Error { public: MoveError(const gchar *cmd) |