Sublime Forum

Python decorator style changed in build 3126?

#1

I feel like the visual style of Python decorator functions has changed in build 3126. Did the scoping rules change for decorator functions in the latest build?

If I remember correctly, my decorators used to be aqua italic text (I’m using a Monokai color scheme variant), and now I see a red @ with plain white text for the function name. I’m just wondering if my theme is busted (and needs to be updated), or if there’s a bug lurking here somewhere.

0 Likes

#2

Looks like my custom Monokai scheme was missing a few updated rules. I’ve merged recent changes from the default Monokai color scheme, and things are (nearly) fixed. The bare bones decorator style @my_decorator doesn’t seem to get colored correctly, but a decorator with args like @another_one(param) seems to work.

1 Like

#3
0 Likes