From edfeae5fa832f68ce40eb098b22b1ebd6ba7e449 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 1 Mar 2013 03:46:37 +0100 Subject: documented remaining commands * flow control and other structures have not been documented this ways. I have not yet decided whether they should be documented in separate sections or use the documentation tool. --- src/cmdline.cpp | 7 +++ src/goto.cpp | 26 +++++++++ src/parser.cpp | 4 +- src/qregisters.cpp | 124 +++++++++++++++++++++++++++++++++++++++ src/ring.cpp | 79 +++++++++++++++++++++++++ src/search.cpp | 167 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 405 insertions(+), 2 deletions(-) diff --git a/src/cmdline.cpp b/src/cmdline.cpp index ac71548..122712f 100644 --- a/src/cmdline.cpp +++ b/src/cmdline.cpp @@ -472,6 +472,13 @@ symbol_complete(SymbolList &list, const gchar *symbol, gchar completed) * Command states */ +/*$ + * *q -- Save last command line + * + * Only at the very beginning of a command-line, this command + * may be used to save the last command line as a string in + * Q-Register . + */ State * StateSaveCmdline::got_register(QRegister ®) throw (Error) { diff --git a/src/goto.cpp b/src/goto.cpp index 4fed38b..4996122 100644 --- a/src/goto.cpp +++ b/src/goto.cpp @@ -139,6 +139,32 @@ StateLabel::custom(gchar chr) throw (Error) return this; } +/*$ + * Olabel$ -- Go to label + * [n]Olabel1[,label2,...]$ + * + * Go to