summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-04-29 17:51:51 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-04-29 17:51:51 (GMT)
commit44ca9512aaeb19f7fbd07afda88ec4cfe53ce831 (patch)
treea8d7cbd0da612bb0b1fa97dcc1bac1838f845338 /src/doctokenizer.l
parentf3e0c94b327d47e5c3d3a36a9a6300cee8d2a537 (diff)
downloadDoxygen-44ca9512aaeb19f7fbd07afda88ec4cfe53ce831.zip
Doxygen-44ca9512aaeb19f7fbd07afda88ec4cfe53ce831.tar.gz
Doxygen-44ca9512aaeb19f7fbd07afda88ec4cfe53ce831.tar.bz2
Release-1.8.0-20120429
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 7f11aca..d9f845a 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -395,6 +395,7 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}
%x St_HtmlOnly
%x St_ManOnly
%x St_LatexOnly
+%x St_RtfOnly
%x St_XmlOnly
%x St_Verbatim
%x St_Dot
@@ -708,9 +709,10 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}
return TK_NEWPARA;
}
}
-<St_CodeOpt>"{"{LABELID}"}" {
+<St_CodeOpt>{BLANK}*"{"(".")?{LABELID}"}" {
g_token->name = yytext;
- g_token->name = g_token->name.mid(1,g_token->name.length()-2);
+ int i=g_token->name.find('{');
+ g_token->name = g_token->name.mid(i+1,g_token->name.length()-i-2);
BEGIN(St_Code);
}
<St_CodeOpt>\n |
@@ -745,6 +747,14 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}
<St_ManOnly>. {
g_token->verb+=yytext;
}
+<St_RtfOnly>{CMD}"endrtfonly" {
+ return RetVal_OK;
+ }
+<St_RtfOnly>[^\\@\n$]+ |
+<St_RtfOnly>\n |
+<St_RtfOnly>. {
+ g_token->verb+=yytext;
+ }
<St_LatexOnly>{CMD}"endlatexonly" {
return RetVal_OK;
}
@@ -1199,6 +1209,12 @@ void doctokenizerYYsetStateManOnly()
BEGIN(St_ManOnly);
}
+void doctokenizerYYsetStateRtfOnly()
+{
+ g_token->verb="";
+ BEGIN(St_RtfOnly);
+}
+
void doctokenizerYYsetStateXmlOnly()
{
g_token->verb="";