robertcollier4 wrote:Don't think this is going to be possible with Sublime. Sublime only does syntax coloring based upon string Regular Expression rules on a singular line-by-line basis only. The kind of coloring shown on the right would need a symbol table to be built from a parser specific to the language that understands how each symbol was defined. I agree though the coloring on the right looks really nice and helpful.
thanks, I was hoping there was some 'exotic' way to obtain it in Sublime too.. it's really a step-forward feature that lacks when you're accustomed to use it (like also javadoc/jsdoc/doxygen documentation popup..).
May be it could be implemented in Sublime next releases by adding to language-specific RegEx rules an additional check that 'remembers' the used variables <name, scope> without changing the line-by-line approach.
Or.. does a similar workaroud may be implemented as a plugin? variable type and scope can be obtained by parsing the code for brackets sequence and keywords and then change the color according to what the user defined in plugin settings.
Possible variables type and scope can be:
- function/method declaration;
- function/method call;
- global variable;
- local variable;
- parameter;
Currently I've not great experience in python development.. so if someone else likes and grabs the idea will be great!
(for moderator: it's more appropriate to move this thread to 'Ideas and Feature Request' section)