Skip to content

Commit b505016

Browse files
committed
Handling of spaces around option of \invlude{doc}
- the option starting curly bracket (`{`) should directly follow `\include` or `\snippet` - around the option `doc` white space is possible
1 parent 1fa3e70 commit b505016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commentcnv.l

+2-2
Original file line numberDiff line numberDiff line change
@@ -966,11 +966,11 @@ SLASHopt [/]*
966966
<CComment,CNComment,ReadLine>[\\@][\\@][~a-z_A-Z][a-z_A-Z0-9]*[ \t]* { // escaped command
967967
copyToOutput(yyscanner,yytext,(int)yyleng);
968968
}
969-
<CComment,ReadLine,IncludeFile>[\\@]("include"{B}*"{doc}"|"includedoc") {
969+
<CComment,ReadLine,IncludeFile>[\\@]("include{"{B}*"doc"{B}*"}"|"includedoc") {
970970
yyextra->includeCtx = YY_START;
971971
BEGIN(IncludeDoc);
972972
}
973-
<CComment,ReadLine,IncludeFile>[\\@]("snippet"{B}*"{doc}"|"snippetdoc") {
973+
<CComment,ReadLine,IncludeFile>[\\@]("snippet{"{B}*"doc"{B}*"}"|"snippetdoc") {
974974
yyextra->includeCtx = YY_START;
975975
BEGIN(SnippetDoc);
976976
}

0 commit comments

Comments
 (0)