summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 6bc541e..cc8a944 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -402,6 +402,7 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}
%x St_LatexOnly
%x St_RtfOnly
%x St_XmlOnly
+%x St_DbOnly
%x St_Verbatim
%x St_Dot
%x St_Msc
@@ -780,6 +781,14 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}
<St_XmlOnly>. {
g_token->verb+=yytext;
}
+<St_DbOnly>{CMD}"enddocbookonly" {
+ return RetVal_OK;
+ }
+<St_DbOnly>[^\\@\n]+ |
+<St_DbOnly>\n |
+<St_DbOnly>. {
+ g_token->verb+=yytext;
+ }
<St_Verbatim>{CMD}"endverbatim" {
g_token->verb=stripEmptyLines(g_token->verb);
return RetVal_OK;
@@ -1230,6 +1239,12 @@ void doctokenizerYYsetStateXmlOnly()
BEGIN(St_XmlOnly);
}
+void doctokenizerYYsetStateDbOnly()
+{
+ g_token->verb="";
+ BEGIN(St_DbOnly);
+}
+
void doctokenizerYYsetStateLatexOnly()
{
g_token->verb="";