I just had the following (maybe stupid) idea. One of the great things about python is that it exposes the parsing completely in the standard library, with the module tokenize.
Now would not it be possible to write a simple tokenizer that takes a python file and returns a nice structured format of the same, that python-mode can interpret to colorize/manage the code? For example import sys def fun(a): .. might become (very roughly) <builtin>import</builtin> <name>name</name> <builtin>def</builtin> <name>fun</name><op>(</op><parameter>a</parameter>... This would make it work automatically with every possible python version, and remove the necessity of rewriting the parser in elisp. Does it make any sense? If yes I can write a blueprint maybe, and actually I could implement something myself, at least on the python side I have some experience in the area. _______________________________________________ Python-mode mailing list Python-mode@python.org http://mail.python.org/mailman/listinfo/python-mode