Skip to content

Commit ce1ff9b

Browse files
authored
[Rust] add enum members to indexed symbol list (sublimehq#4182)
* [Rust] add enum members to indexed symbol list - to support Goto Definition etc. * [Rust] improvements from PR review
1 parent 0dc960e commit ce1ff9b

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Rust/Symbol List.tmPreferences

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
entity.name.module.rust,
1010
entity.name.struct.rust,
1111
entity.name.trait.rust,
12-
entity.name.union.rust
12+
entity.name.union.rust,
13+
meta.enum.rust storage.type - meta.struct
1314
</string>
1415
<key>settings</key>
1516
<dict>

Rust/tests/symbols/syntax_test_symbols.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,16 @@ type MyType;
3030

3131
union Union {}
3232
// @@@@@ definition
33+
34+
35+
enum AnotherEnum {
36+
// @@@@@@@@@@@ definition
37+
Foo,
38+
// @@@ definition
39+
Bar {
40+
// @@@ definition
41+
toggle: bool,
42+
},
43+
Baz(MyEnum),
44+
// @@@ definition
45+
}

0 commit comments

Comments
 (0)