Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
63dedfa8
Commit
63dedfa8
authored
Jul 13, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue handling \docbookonly..\enddocbookonly section
parent
096c5944
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
docparser.cpp
src/docparser.cpp
+10
-1
doctokenizer.l
src/doctokenizer.l
+4
-0
No files found.
src/docparser.cpp
View file @
63dedfa8
...
...
@@ -1352,7 +1352,7 @@ reparsetoken:
doctokenizerYYsetStateDbOnly
();
tok
=
doctokenizerYYlex
();
children
.
append
(
new
DocVerbatim
(
parent
,
g_context
,
g_token
->
verb
,
DocVerbatim
::
DocbookOnly
,
g_isExample
,
g_exampleName
));
if
(
tok
==
0
)
warn_doc_error
(
g_fileName
,
doctokenizerYYlineno
,
"
xml
only section ended without end marker"
,
doctokenizerYYlineno
);
if
(
tok
==
0
)
warn_doc_error
(
g_fileName
,
doctokenizerYYlineno
,
"
docbook
only section ended without end marker"
,
doctokenizerYYlineno
);
doctokenizerYYsetStatePara
();
}
break
;
...
...
@@ -5472,6 +5472,15 @@ int DocPara::handleCommand(const QCString &cmdName)
doctokenizerYYsetStatePara
();
}
break
;
case
CMD_DBONLY
:
{
doctokenizerYYsetStateDbOnly
();
retval
=
doctokenizerYYlex
();
m_children
.
append
(
new
DocVerbatim
(
this
,
g_context
,
g_token
->
verb
,
DocVerbatim
::
DocbookOnly
,
g_isExample
,
g_exampleName
));
if
(
retval
==
0
)
warn_doc_error
(
g_fileName
,
doctokenizerYYlineno
,
"docbookonly section ended without end marker"
,
doctokenizerYYlineno
);
doctokenizerYYsetStatePara
();
}
break
;
case
CMD_VERBATIM
:
{
doctokenizerYYsetStateVerbatim
();
...
...
src/doctokenizer.l
View file @
63dedfa8
...
...
@@ -1099,6 +1099,10 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}
g_endMarker="endxmlonly";
BEGIN(St_SecSkip);
}
<St_Sections>{CMD}"docbookonly"/[^a-z_A-Z0-9] {
g_endMarker="enddocbookonly";
BEGIN(St_SecSkip);
}
<St_Sections>{CMD}"code"/[^a-z_A-Z0-9] {
g_endMarker="endcode";
BEGIN(St_SecSkip);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment