Syntax highlighting still makes me some confusion, it's not natural.. so here goes some ideas to maybe consider.
- when defining structs (JSON style) make the properties a different color. ie.: (age, name, type, class - should be the same colour and a different colour... (not the yellow local variables colour)... because they do not reference variables but "names")..
- limit variable highlight by scope. I know this might sound difficult to pull but the syntax highlighter must know went it is inside of a function or not.. because there are specific keywords that define it (function.. and constructor). In the example below we can see that "a" and "b" still get highlighted inside functions the parser for the syntax highlighter could easily (don't think is that hard) create a new variable scope and add it to the stack when it enters a function definition this way variables wound't be highlighted... regarding colouring I think parameter colour should be different from the local variable colour. (at least make this differentiation so we can customise in the preferences).
By the way.. when i finished this post I realised how many new builtin variables just appeared I wish features didn't come at such a high price. Again don't get me wrong this new 2.3 is amazing with a lot of features and I love every single one of them... just wanted to push it even further ;)
Please sign in to leave a comment.