diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-03-29 18:36:56 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-03-29 18:36:56 (GMT) |
commit | 842c816a31537e32cec376c85c0a4363f74d7a54 (patch) | |
tree | 03d6b185e875e40273478b0d1dd504345aec00ac /src/doctokenizer.l | |
parent | a7c7f36ea2a67969bf3916c7600fe487e34438c0 (diff) | |
download | Doxygen-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.l | 12 |
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() |