[issue45692] IDLE: define word/id chars in one place.
Terry J. Reedy
report at bugs.python.org
Tue Nov 2 16:38:01 EDT 2021
Terry J. Reedy <tjreedy at udel.edu> added the comment:
editor.py, line 809, IDENTCHARS
Used in the immediately following def colorize_syntax_error on line 814.
if char and char in self.IDENTCHARS:
text.tag_add("ERROR", pos + " wordstart", pos)
I believe the intent is to color the part of an identifier that precedes the character marked. At the moment, I cannot think of how to trigger such a situation. I would have to add some console prints to investigate. Maybe this should get the autoexpand fix, but maybe it is dead code.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45692>
_______________________________________
More information about the Python-bugs-list
mailing list