We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2800b82 commit 2f3f627Copy full SHA for 2f3f627
src/commentcnv.l
@@ -1635,9 +1635,16 @@ static void insertCommentStart(yyscan_t yyscanner)
1635
//printf("insertCommentStart startCol=%d contentCol=%d mlBrief=%d insertCppCommentMarker=%d\n",
1636
// yyextra->blockHeadCol,yyextra->insertCommentCol,yyextra->mlBrief,yyextra->insertCppCommentMarker);
1637
std::string marker;
1638
- if (yyextra->lang==SrcLangExt::Python) // need to insert #
+ if (yyextra->lang==SrcLangExt::Python) // need to insert # or space
1639
{
1640
- marker="# ";
+ if (yyextra->pythonDocString) // """! style comment
1641
+ {
1642
+ marker=" ";
1643
+ }
1644
+ else
1645
1646
+ marker="# ";
1647
1648
}
1649
else if (yyextra->lang==SrcLangExt::Fortran) // need to insert !!
1650
0 commit comments