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

rust grammar does not assign keyword scope to some keywords #120363

Closed
a5hk opened this issue Apr 1, 2021 · 1 comment
Closed

rust grammar does not assign keyword scope to some keywords #120363

a5hk opened this issue Apr 1, 2021 · 1 comment
Assignees
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@a5hk
Copy link
Contributor

a5hk commented Apr 1, 2021

This issue is related to #108254 . Can we have keyword scope too? Something like this:

{
    "comment": "struct declarations",
    "match": "\\b(struct)\\s+([A-Z][A-Za-z0-9]*)\\b",
    "captures": {
        "1": {
            "name": "keyword.declaration.struct.rust storage.type.rust"
        },
        "2": {
            "name": "entity.name.type.struct.rust"
        }
    }
}

which results in:

image

I used the scope from https://www.sublimetext.com/docs/3/scope_naming.html#storage.

@alexr00
Copy link
Member

alexr00 commented Apr 6, 2021

Moved to the upstream repo: dustypomerleau/rust-syntax#16

@alexr00 alexr00 closed this as completed Apr 6, 2021
@alexr00 alexr00 added grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream labels Apr 6, 2021
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

3 participants