diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-06-07 11:47:47 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-06-07 11:47:47 (GMT) |
commit | 0c394c5817041713aee58748fcd5d338a467cbee (patch) | |
tree | f17d17b67fdefdfdf992328f3f51dd90812c156e /src/doctokenizer.l | |
parent | 70b82eced91d2739181f2b700ec04cb14d776d7b (diff) | |
download | Doxygen-0c394c5817041713aee58748fcd5d338a467cbee.zip Doxygen-0c394c5817041713aee58748fcd5d338a467cbee.tar.gz Doxygen-0c394c5817041713aee58748fcd5d338a467cbee.tar.bz2 |
Release-1.3.1-20030607
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r-- | src/doctokenizer.l | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index 395cd81..b86a1dd 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -306,6 +306,7 @@ LABELID [a-z_A-Z][a-z_A-Z0-9\-]* %x St_Code %x St_HtmlOnly %x St_LatexOnly +%x St_XmlOnly %x St_Verbatim %x St_Param %x St_XRefItem @@ -507,6 +508,14 @@ LABELID [a-z_A-Z][a-z_A-Z0-9\-]* <St_LatexOnly>. { g_token->verb+=yytext; } +<St_XmlOnly>{CMD}"endxmlonly" { + return RetVal_OK; + } +<St_XmlOnly>[^\\@\n]+ | +<St_XmlOnly>\n | +<St_XmlOnly>. { + g_token->verb+=yytext; + } <St_Verbatim>{CMD}"endverbatim" { return RetVal_OK; } @@ -742,6 +751,10 @@ LABELID [a-z_A-Z][a-z_A-Z0-9\-]* g_endMarker="endlatexonly"; BEGIN(St_SecSkip); } +<St_Sections>{CMD}"xmlonly" { + g_endMarker="endxmlonly"; + BEGIN(St_SecSkip); + } <St_Sections>{CMD}"code" { g_endMarker="endcode"; BEGIN(St_SecSkip); @@ -850,6 +863,12 @@ void doctokenizerYYsetStateHtmlOnly() BEGIN(St_HtmlOnly); } +void doctokenizerYYsetStateXmlOnly() +{ + g_token->verb=""; + BEGIN(St_XmlOnly); +} + void doctokenizerYYsetStateLatexOnly() { g_token->verb=""; |