Skip to content

Commit 0572db7

Browse files
committed
issue #10240 Multi-line doc not recognized in Python class field
Improve handling of start of a special comment block. (Looks like it should not be corrected at other places)
1 parent eb11063 commit 0572db7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pyscanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ ID [a-z_A-Z%]+{IDSYM}*
716716
BEGIN(TripleComment);
717717
}
718718
719-
{STARTDOCSYMS}/[^#] { // start of a special comment
719+
{STARTDOCSYMS}/[^#\n] { // start of a special comment
720720
initSpecialBlock(yyscanner);
721721
BEGIN(SpecialComment);
722722
}

0 commit comments

Comments
 (0)