Terry Reedy wrote:
the first two 'and's in "a and b.and # and error" are tagged. To not tag the second would require full parsing,
That particular case could be handled by just not colouring any word following a dot. Some other situations might result in false positives, but there are cases like that already. Many Python colourisers colour any occurrence of a builtin function name, even if it has been shadowed, and people seem to live with that. It might even be useful, if it alerts people that a name they're using is reserved in some contexts, and so might be best avoided. -- Greg _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/