rust-analyzer/editors/code/src
bors[bot] f0ba01cd43
Merge #3817
3817: vscode: highlight syntax tree ro editor r=matklad a=Veetaha

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:
```jsonc
{
    "editor.tokenColorCustomizations": {
        "textMateRules": [ { "scope": "name", "settings": { /* */ } } ] 
    }
}
```
![image](https://user-images.githubusercontent.com/36276403/78204947-99f9d600-74a3-11ea-8315-cb1c87810c7c.png)

Related: #3682

Co-authored-by: veetaha <veetaha2@gmail.com>
2020-04-02 07:32:14 +00:00
..
commands Merge #3817 2020-04-02 07:32:14 +00:00
client.ts Pass string instread of WorkspaceFolder 2020-03-31 10:24:01 +01:00
color_theme.ts enforce camel case 2020-02-21 11:22:45 +01:00
config.ts Process configuration response draft 2020-03-30 13:39:14 +03:00
ctx.ts Pass string instread of WorkspaceFolder 2020-03-31 10:24:01 +01:00
highlighting.ts Merge #3388 2020-03-03 13:45:26 +00:00
inlay_hints.ts Code review fixes 2020-03-30 13:39:14 +03:00
main.ts Pass string instread of WorkspaceFolder 2020-03-31 10:24:01 +01:00
net.ts Rewrite auto-update 2020-03-19 09:04:59 +01:00
persistent_state.ts Rewrite auto-update 2020-03-19 09:04:59 +01:00
rust-analyzer-api.ts Extension types and rendering 2020-03-24 23:22:41 +01:00
source_change.ts vscode: migrate source_cnage.rs to rust-analyzer-api.rs 2020-02-25 00:49:19 +02:00
status_display.ts vscode: press ; to respect semicolons 2020-02-17 22:09:44 +02:00
tasks.ts Use namespace import 2020-03-31 09:06:46 +01:00
util.ts vscode: add syntax tree inspection hovers and highlights 2020-03-31 16:20:59 +03:00