Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rfricz opened this issue Nov 22, 2023 · 1 comment
Open

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

rfricz opened this issue Nov 22, 2023 · 1 comment

Comments

@rfricz
Copy link

rfricz commented Nov 22, 2023

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
Copy link
Author

rfricz commented Jan 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant