tcd / dark-plus-syntax

VS Code's default dark theme, but just a little bit better.
https://marketplace.visualstudio.com/items?itemName=dunstontc.dark-plus-syntax
Other
56 stars 14 forks source link

[BUG] return type hinting in python #18

Open WooheonHong opened 3 years ago

WooheonHong commented 3 years ago

If I add a return type hinting, All codes under the function declaration are changed to the same color(#9CDCFE) except for the function name.

I found that this happens no matter what character you put in front of the function declaration letter ":".

def fun(x : int) -> x : int:
# all code #9CDCFE
    x += 1 
    return x 

# all code #9CDCFE
def fun2(): 
    pass
def fun(x : int):
# It is okay
    x += 1 
    return x 

def fun2():
    pass