Currently this Python module has 10,792 lines of code, and on line 4072 I saw the unexpected orange italic highlighting, which made no sense to me.
[image: 1736354321734-4a6db2b4-87ea-4c46-9db3-92757ffd4a2b-image.png]
As part of the same bug report, it was mentioned in one of the replies on the issue, that ending a Python comment with a . triggers the attribute formatting on the next line.
This is because it’s looking for . followed by 0-or-more-whitespace (which includes newline) followed by what would otherwise be an identifier, and if it finds that, then instead of identifier, it treats the word as an attribute/method instead. So, to get around that bug, either remove the ... at the end of your comment, or put some other (non-whitespace) character after the ... - maybe use : instead of ...