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

[Java] Rename class scopes #3741

Merged
merged 1 commit into from
May 13, 2023
Merged

Conversation

deathaxe
Copy link
Collaborator

This PR proposes to change scope of classes to support.class.

Java decided to use storage.type.class as support scopes are said to be used for types provided by (standard) libraries only. Thus storage.type would be the scope for all user defined data types.

The truth according to TextMate's is exactly vice versa.

storage.type is meant for basic builtin data types of a language, such as int, char, ...

support.class, support.type, ... however are meant for all kinds of custom or user defined data types - not only those from standard libraries.

As such it makes very much sense most (all) other syntaxes use support.class for ClassTypes.

This commit intents to make Java follow those rules, too, again.

This commit changes scope of classes to `support.class`.

Java decided to use `storage.type.class` as `support` scopes are said to be used
for types provided by (standard) libraries only. Thus `storage.type` would be
the scope for all user defined data types.

The truth according to TextMate's is exactly vice versa.

`storage.type` is meant for basic builtin data types of a language, such as
`int`, `char`, ...

`support.class`, `support.type`, ... however are meant for all kinds of custom
or user defined data types - not only those from standard libraries.

As such it makes very much sense most (all) other syntaxes use `support.class`
for `ClassTypes`.

This commit intents to make Java follow those rules, too, again.
Copy link
Collaborator

@FichteFoll FichteFoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did find it a little weird that you went this road with Java but it didn't bother me after trying it out for a while. In the end, both are fine for me, but since Java is in the overwhelming minority, it makes sense to align Java with the others for now until we maybe find another solution do this (see #1842).

@deathaxe deathaxe merged commit 748179b into sublimehq:master May 13, 2023
@deathaxe deathaxe deleted the pr/java/class-scopes branch May 13, 2023 19:28
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

Successfully merging this pull request may close these issues.

3 participants