We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a14d260 + 17c2942 commit c611ec4Copy full SHA for c611ec4
src/commentcnv.l
@@ -221,6 +221,25 @@ SLASHopt [/]*
221
yyextra->commentStack.push(yyextra->lineNr);
222
}
223
224
+<Scan>"\"\"\"" { /* start of python long comment */
225
+ if (yyextra->lang!=SrcLangExt_Python)
226
+ {
227
+ REJECT;
228
+ }
229
+ else if (Config_getBool(PYTHON_DOCSTRING))
230
231
232
233
+ else
234
+ { /* handle as if """! */
235
+ yyextra->pythonDocString = TRUE;
236
+ yyextra->nestingCount=1;
237
+ clearCommentStack(yyscanner); /* to be on the save side */
238
+ copyToOutput(yyscanner,yytext,(int)yyleng);
239
+ BEGIN(CComment);
240
+ yyextra->commentStack.push(yyextra->lineNr);
241
242
243
<Scan>![><!]/.*\n {
244
if (yyextra->lang!=SrcLangExt_Fortran)
245
{
0 commit comments