forked from sublimehq/Packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Rust] Tweak tmPreferences (sublimehq#3195)
* [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
- Loading branch information
Showing
5 changed files
with
54 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
Rust/RustIndent.tmPreferences → Rust/Indentation Rules.tmPreferences
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>scope</key> | ||
<string> | ||
entity.name.constant.rust, | ||
entity.name.impl.rust, | ||
entity.name.macro.rust, | ||
entity.name.module.rust, | ||
entity.name.struct.rust, | ||
entity.name.trait.rust, | ||
entity.name.union.rust | ||
</string> | ||
<key>settings</key> | ||
<dict> | ||
<key>showInSymbolList</key> | ||
<integer>1</integer> | ||
<key>showInIndexedSymbolList</key> | ||
<integer>1</integer> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SYNTAX TEST "Packages/Rust/Rust.sublime-syntax" | ||
|
||
fn foo() {} | ||
// @@@ definition | ||
|
||
enum MyEnum {} | ||
// @@@@@@ definition | ||
|
||
macro_rules! my_macro [] | ||
// @@@@@@@@ definition | ||
|
||
mod my_mod { } | ||
// @@@@@@ definition | ||
|
||
struct MyStruct { | ||
// @@@@@@@@ definition | ||
|
||
const A = 0; | ||
// @ definition | ||
|
||
fn bar() {} | ||
// @@@ definition | ||
} | ||
|
||
trait MyTrait {} | ||
// @@@@@@@ definition | ||
|
||
type MyType; | ||
// @@@@@@ definition | ||
|
||
union Union {} | ||
// @@@@@ definition |