-
Notifications
You must be signed in to change notification settings - Fork 591
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] Tweak tmPreferences #3195
[Rust] Tweak tmPreferences #3195
Conversation
This commit renames all tmPreferences files to match the common naming scheme used in all other packages.
This commit... 1. removes the following entries, which are defined in Default/Symbol List.tmPreferences: - `entity.name.enum` - `entity.name.function` - `entity.name.type` 2. adds: - `entity.name.constant.rust` - `entity.name.union` 3. adds a simple test for each symbol kind
There's an RFC for the scoping and indexing of constants at #458 |
I can't find something about indexing in it. What I have in mind is variables not to be scoped in general as those would cause too much noise. Rust scopes constants |
* [Rust] Rename tmPreferences files This commit renames all tmPreferences files to match the common naming scheme used in all other packages. * [Rust] Remove `name` field from tmPreferences files * [Rust] Tweak Symbol List This commit... 1. removes the following entries, which are defined in Default/Symbol List.tmPreferences: - `entity.name.enum` - `entity.name.function` - `entity.name.type` 2. adds: - `entity.name.constant.rust` - `entity.name.union` 3. adds a simple test for each symbol kind
struct MyStruct { | ||
// @@@@@@@@ definition | ||
|
||
const A = 0; | ||
// @ definition | ||
|
||
fn bar() {} | ||
// @@@ definition | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually invalid syntax. What it should be is:
struct MyStruct {}
// @@@@@@@@ definition
impl MyStruct {
const A: i32 = 0;
// @ definition
fn bar() {}
// @@@ definition
}
* [Rust] Rename tmPreferences files This commit renames all tmPreferences files to match the common naming scheme used in all other packages. * [Rust] Remove `name` field from tmPreferences files * [Rust] Tweak Symbol List This commit... 1. removes the following entries, which are defined in Default/Symbol List.tmPreferences: - `entity.name.enum` - `entity.name.function` - `entity.name.type` 2. adds: - `entity.name.constant.rust` - `entity.name.union` 3. adds a simple test for each symbol kind
This commit applies some changes to Rust's tmPreferences to re-align them with the other packages.
We might want to discuss, whether we want to add
entity.name.constant.rust
to the symbol list as requested by #3193 as it would cause all global and local constant declarations to be indexed.