summaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
Diffstat (limited to 'addon')
-rw-r--r--addon/configgen/config_templ.l14
-rw-r--r--addon/configgen/configgen.cpp12
2 files changed, 26 insertions, 0 deletions
diff --git a/addon/configgen/config_templ.l b/addon/configgen/config_templ.l
index aab5755..98a688f 100644
--- a/addon/configgen/config_templ.l
+++ b/addon/configgen/config_templ.l
@@ -812,6 +812,20 @@ void checkConfig()
#endif
s=Config::includePath.next();
}
+
+ // check aliases
+ s=Config::aliasList.first();
+ while (s)
+ {
+ QRegExp re("[a-z_A-Z][a-z_A-Z0-9]*[ \t]*=");
+ QCString alias=s;
+ alias=alias.stripWhiteSpace();
+ if (alias.find(re)!=0)
+ {
+ err("Illegal alias format `%s'. Use \"name=value\"\n",alias.data());
+ }
+ s=Config::aliasList.next();
+ }
// check dot path
if (!Config::dotPath.isEmpty())
diff --git a/addon/configgen/configgen.cpp b/addon/configgen/configgen.cpp
index 4367f20..48146ee 100644
--- a/addon/configgen/configgen.cpp
+++ b/addon/configgen/configgen.cpp
@@ -1014,6 +1014,18 @@ void init()
"disable (NO) the test list. This list is created by putting \\test \n"
"commands in the documentation.\n"
);
+ ConfigList::add( "aliasList",
+ "ALIASES",
+ "",
+ "list of aliases",
+ "This tag can be used to specify a number of aliases that acts \n"
+ "as commands in the documentation. An alias has the form \"\\name=value\". \n"
+ "For example adding \"sideeffect=\\par Side Effects:\\n\" will allow you to \n"
+ "put the command \\sideeffect (or @sideeffect) in the documentation, which \n"
+ "will result in a user defined paragraph with heading \"Side Effects:\". \n"
+ "You can put \\n's in the value part of an alias to insert newlines. \n"
+ "Predefined commands cannot be overwritten using aliases. \n"
+ );
//-----------------------------------------------------------------------------------------------
ConfigInfo::add( "Messages","configuration options related to warning and progress messages");
//-----------------------------------------------------------------------------------------------