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

vscode: highlight syntax tree ro editor #3817

Conversation

Veetaha
Copy link
Contributor

@Veetaha Veetaha commented Apr 2, 2020

Small textmate grammar declaration to make rust-analyzer syntax tree more easily inspectable:
Btw, if we change the file extension of our ra_syntax/test_data/** files to .rast they should be highlighted in vscode too.

The colors of the tokens are actually going to be color-theme dependent, or you can customize them via:

{
    "editor.tokenColorCustomizations": {
        "textMateRules": [ { "scope": "name", "settings": { /* */ } } ] 
    }
}

image

Related: #3682

@Veetaha Veetaha changed the title Feature/vscode highlight syntax tree ro editor vscode: highlight syntax tree ro editor Apr 2, 2020
@Veetaha Veetaha force-pushed the feature/vscode-highlight-syntax-tree-ro-editor branch from c686e2d to 62ed01a Compare April 2, 2020 02:39
@matklad
Copy link
Member

matklad commented Apr 2, 2020

bors r+

Neat!

@bors
Copy link
Contributor

bors bot commented Apr 2, 2020

@bors bors bot merged commit f0ba01c into rust-lang:master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants