MattDMo / Neon-color-scheme

A colorful bright-on-black color scheme for Sublime Text. Its aim is to make as many languages as possible look as good as possible. Includes extended support for Python, Ruby, Clojure, JavaScript/JSON, C/C++, diff, HTML/XML, Markdown, PHP, CSS/SCSS/SASS, GitGutter, Find In Files, PackageDev, Regex, SublimeLinter, and much more.
https://github.com/MattDMo/Neon-color-scheme
MIT License
174 stars 36 forks source link

All JS/TS code is italic since Sublime Text build 4166 #52

Open rfricz opened 10 months ago

rfricz commented 10 months ago

Hi, I'm not sure what has changed in Sublime Text in build 4166, but all JavaScript/TypeScript code that's somehow nested inline (so almost all code in a lot of cases) is now italic:

image

This wasn't the case in the previous builds and it makes code much less readable. The reason I'm creating an issue here is that other color schemes like Monokai use italic sparingly just for arguments, class names etc.:

image

I think Neon's usage of italic was just like that in older Sublime Text builds. Forcing no_italic in font_options as a workaround is almost just as bad as having all italic. Could you please have a look at what's causing this? Thanks.

rfricz commented 8 months ago

If anyone is interested, the problem can be worked around by putting the following JSON into the Packages/User/Neon.sublime-color-scheme file:

{
    "variables":
    {
    },
    "globals":
    {
    },
    "rules":
    [
        {
            "name": "Function arguments",
            "scope": "meta.function-call.arguments, meta.function-call.parameters variable.parameter, support.function.any-method, meta.function.inline.other entity.other.attribute-value variable.parameter",
            "foreground": "#2BB71D",
            "font_style": "normal"
        }
    ]
}