Message44628
Logged In: YES
user_id=756090
The purpose of the r"([^\\.]\b|^)" is to prevent member vars with the
same name as a builtin from being colorised.
ie given self.file=file(filename) only the second 'file' should be colorised as
the first one is NOT shadowing the builtin.
However, you are quite right WRT the quoting bug.
Changeing the r"([^\\.]\b|^)" to r"([^\\.'\"]\b|^)" seems to fix it so that
self.file = file("file")
is colorised correctly. Ie the first 'file' is in Normal color, the second is in
Builtins color and the third is in Strings color.
--
Nigel |
|
Date |
User |
Action |
Args |
2007-08-23 15:29:07 | admin | link | issue805830 messages |
2007-08-23 15:29:07 | admin | create | |
|