Packages
Packages copied to clipboard
[Rust] More small tweaks to type matching
- Fixes highlighting of unknown generic types
- Adds stacking of
storage.typeundersupport.type
Why stacking two type scopes?
With a closer and careful look at original TextMate scope naming guidelines storage.type is meant for any basic builtin data type, such as int, class, ..., while support.type is meant for any kind of library, 3rd-party or user defined data type.
We already abused that a bit by introducing keyword.declaration and limiting support scope to standard library like types.
I wouldn't start stacking those different kinds of data type scopes.
I was wondering the same thing myself :)
Stacking was primarily inspired from the discussion at https://github.com/sublimehq/Packages/issues/1842#issuecomment-477158241. The discussion never reached a conclusion though and I also see that this sort of stacking is not used elsewhere, so I will drop the commit.