MattDMo/Neon-color-scheme

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

Opened this issue · 1 comments

rfricz commented

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

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"
        }
    ]
}