summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-03-29 18:36:56 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-03-29 18:36:56 (GMT)
commit842c816a31537e32cec376c85c0a4363f74d7a54 (patch)
tree03d6b185e875e40273478b0d1dd504345aec00ac /src/doctokenizer.l
parenta7c7f36ea2a67969bf3916c7600fe487e34438c0 (diff)
downloadDoxygen-842c816a31537e32cec376c85c0a4363f74d7a54.zip
Doxygen-842c816a31537e32cec376c85c0a4363f74d7a54.tar.gz
Doxygen-842c816a31537e32cec376c85c0a4363f74d7a54.tar.bz2
Added optional [block] option to \htmlonly
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 7ebe7d3..cf6d2ee 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -406,6 +406,7 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{LNKWORD2}
%x St_CodeOpt
%x St_XmlCode
%x St_HtmlOnly
+%x St_HtmlOnlyOption
%x St_ManOnly
%x St_LatexOnly
%x St_RtfOnly
@@ -767,6 +768,14 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{LNKWORD2}
<St_Code,St_XmlCode>. {
g_token->verb+=yytext;
}
+<St_HtmlOnlyOption>" [block]" { // the space is added in commentscan.l
+ g_token->name="block";
+ BEGIN(St_HtmlOnly);
+ }
+<St_HtmlOnlyOption>.|\n {
+ unput(*yytext);
+ BEGIN(St_HtmlOnly);
+ }
<St_HtmlOnly>{CMD}"endhtmlonly" {
return RetVal_OK;
}
@@ -1255,7 +1264,8 @@ void doctokenizerYYsetStateXmlCode()
void doctokenizerYYsetStateHtmlOnly()
{
g_token->verb="";
- BEGIN(St_HtmlOnly);
+ g_token->name="";
+ BEGIN(St_HtmlOnlyOption);
}
void doctokenizerYYsetStateManOnly()