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

[Rust] Use keyword.declaration scope #3911

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

FichteFoll
Copy link
Collaborator

@FichteFoll FichteFoll commented Jan 28, 2024

Following the example of Java, we're replacing the storage.type scope
with keyword.declaration without keeping the storage.type for
compatibility. Also, like in Java, the use keyword gets a
keyword.declaration.import scope to signal that it is introducing
names into the current namespace.

type aliases have slightly been refactored to properly match where
clauses. (I did a bit of work twice here because I forgot to git pull
before and included the remainder …)

Closes #3640.

Following the example of Java, we're replacing the `storage.type` scope
with `keyword.declaration` without keeping the `storage.type` for
compatibility. Also, like in Java, the `use` keyword gets a
`keyword.declaration.import` scope to signal that it is introducing
names into the current namespace.

`type` aliases have slightly been refactored to properly match `where`
clauses. (I did a bit of work twice here because I forgot to `git pull`
before and included the remainder …)
@FichteFoll FichteFoll force-pushed the pr/rust/keyword-declaration branch from 8346f21 to 7f7708c Compare January 28, 2024 23:07
keith-hall
keith-hall previously approved these changes Jan 29, 2024
Rust/Rust.sublime-syntax Outdated Show resolved Hide resolved
@FichteFoll FichteFoll merged commit 7b10f9b into sublimehq:master Jan 31, 2024
2 checks passed
@FichteFoll FichteFoll deleted the pr/rust/keyword-declaration branch January 31, 2024 12:43
FichteFoll added a commit to SublimeText/PackageDev that referenced this pull request Jul 13, 2024
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.

[Rust] Use keyword.declaration scope
3 participants