Skip to content
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

Symbol Scope to Kind Mapping #30

Open
FichteFoll opened this issue Aug 14, 2020 · 0 comments
Open

Symbol Scope to Kind Mapping #30

FichteFoll opened this issue Aug 14, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@FichteFoll
Copy link
Member

Not sure where to put this in, but creating an issue so it isn't forgotten.


Following is the current state of internal scope to kind mapping (for symbols)

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

via Discord

@FichteFoll FichteFoll added the documentation Improvements or additions to documentation label Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant