semshi icon indicating copy to clipboard operation
semshi copied to clipboard

colouring of explicit keyword arguments

Open GaetanLepage opened this issue 4 years ago • 0 comments

Would it be possible to color the keyword arguments differently ? When calling a function and explicitly specifying the arguments names, they do not get colored and appear the same as the argument value. In the example below, in the last line, x=2 and y=3 would be displayed in a single color. What I would like to see is x and y appearing in a specific color to enhance readability.

def f(x, y):
    return x + y

z = f(x=2, y=3)

Do you know why this is not the case right now ? Is there a specific reason ? Thank you in advance for your enlightenment :)

GaetanLepage avatar May 06 '20 13:05 GaetanLepage