dracula / sublime

🧛🏻‍♂️ Dark theme for Sublime Text
https://draculatheme.com/sublime
MIT License
95 stars 26 forks source link

Python imports and variables are underlined #32

Open karpitsky opened 1 year ago

karpitsky commented 1 year ago

Hello,

It seems to be an issue with the new Sublime Text build (4152). Imports and variables are underlined when the syntax is set to python.

Screenshot 2023-08-03 at 12 59 40

\ The following rules fix the issue:

"rules": [{
    "scope": "meta.path",
    "font_style": "",
    "foreground": "#F8F8F0"
}]
shadowFAQs commented 1 year ago

Same issue for me with build 4152, nearly everything is underlined:

image

The above rule resolved it for me too.

JohnENoonan commented 1 year ago

Thank you! For anyone else who didn't know, you can add these rules in by going to Preferences > Customize Color Theme and adding in the above rules.

LichKing-W commented 1 year ago

It helps! But when I define a class, the name of the class will still be underlined after I add these rules. image

shadowFAQs commented 1 year ago

@LichKing-W I believe that's how the formatting is supposed to work for class names. At least, that's how it worked for me prior to the upgrade to build 4152.

aziele commented 1 year ago

@shadowFAQs I recall that class names weren't underlined. Also, the formatting in the example from this repo indicates a preference for clear formatting.

python
T-700 commented 1 year ago

Thank you! Dracula is the best theme ever!

herrmartins commented 1 year ago

@shadowFAQs I recall that class names weren't underlined. Also, the formatting in the example from this repo indicates a preference for clear formatting.

python

Yes, you are right.. If I change to another color scheme like monokai, it is not underlined.. But with dracula, the classes are underlined. Anyone knows how to solve it?

Thanx

mart-e commented 11 months ago

Same python file, left on sublime, right on emacs : Screenshot from 2023-12-14 16-20-16

I confirm changing with the rules in the first post works so maybe it should be the default to match the behaviour of emacs.