Commit 54e87756 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Fixed problem handling C comments inside a \code block.

parent a07d3d48
...@@ -48,3 +48,4 @@ Makefile ...@@ -48,3 +48,4 @@ Makefile
/src/vhdlparser.cpp /src/vhdlparser.cpp
/src/vhdlparser.h /src/vhdlparser.h
/src/vhdlscanner.cpp /src/vhdlscanner.cpp
/doc/translator_report.txt
This diff is collapsed.
...@@ -6209,12 +6209,12 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) ...@@ -6209,12 +6209,12 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
docBlock+=indent; docBlock+=indent;
} }
} }
<DocCopyBlock>^{B}*"*"+/{BN}* { // start of a comment line <DocCopyBlock>^{B}*+"*"/{BN}* { // start of a comment line
if (docBlockName=="code") if (docBlockName=="code")
{ {
QCString indent; QCString indent;
indent.fill(' ',computeIndent(yytext,0)); indent.fill(' ',computeIndent(yytext,0)-1);
docBlock+=indent; docBlock+=indent+"*";
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment