summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-08-02 09:50:32 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-08-02 09:50:32 (GMT)
commit35b7de3e692b127f8192900e1ae1152221afe76b (patch)
tree439a80b138faab08cdb2a71a32ede743c68ec69f /src
parent9ba8bd85999fa7423eb5b44c680e72ad2e9c31bf (diff)
downloadDoxygen-35b7de3e692b127f8192900e1ae1152221afe76b.zip
Doxygen-35b7de3e692b127f8192900e1ae1152221afe76b.tar.gz
Doxygen-35b7de3e692b127f8192900e1ae1152221afe76b.tar.bz2
Consistency of environment variables between config and code
In a configuration file it was possible to have an environment variable like PROGRAMFILES(X86) but in the code this was not possible.
Diffstat (limited to 'src')
-rw-r--r--src/doctokenizer.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index e6b8865..cad9a9f 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -658,7 +658,8 @@ REFWORD_NOCV {LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
g_token->text = tagName.mid(text_begin,text_end-text_begin);
return TK_RCSTAG;
}
-<St_Para,St_HtmlOnly>"$("{ID}")" { /* environment variable */
+<St_Para,St_HtmlOnly>"$("{ID}")" | /* environment variable */
+<St_Para,St_HtmlOnly>"$("{ID}"("{ID}"))" { /* environment variable */
QCString name = &yytext[2];
name = name.left(name.length()-1);
QCString value = portable_getenv(name);