Skip to content

Instantly share code, notes, and snippets.

@jfcherng
Last active December 11, 2021 17:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfcherng/898e3651a8e0fc1872d94f93824d78e9 to your computer and use it in GitHub Desktop.
Save jfcherng/898e3651a8e0fc1872d94f93824d78e9 to your computer and use it in GitHub Desktop.
ST 4 Autocompletion: Kind <---> Scope relationship
https://discord.com/channels/280102180189634562/280157067396775936/736233105295278120
keyword:
keyword
storage.modifier
storage.type
keyword.declaration
variable.language
constant.language
type:
entity.name.type
entity.name.class
entity.name.enum
entity.name.trait
entity.name.struct
entity.name.impl
entity.name.interface
entity.name.union
weak:
support.type
support.class
function:
entity.name.function
entity.name.method
entity.name.macro
meta.method entity.name.function
weak:
support.function
meta.function-call variable.function
meta.function-call support.function
suport.method
meta.method-call variable.function
namespace:
entity.name.module
entity.name.namespace
weak:
support.module
support.namespace
navigation:
entity.name.definition
entity.name.label
entity.name.section
markup:
entity.other.attribute-name
entity.name.tag
meta.toc-list.id.html
variable:
entity.name.constant
weak:
constant.other
support.constant
variable.other
variable.parameter
variable.other.member
variable.other.readwrite.member
-------------------------------------------------------------------------------------------------------------
The weak inferences factor other things into the match, since those tend to be callsites instead of definitions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment