aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/README.md4
-rw-r--r--editors/code/src/highlighting.ts3
2 files changed, 6 insertions, 1 deletions
diff --git a/editors/README.md b/editors/README.md
index a39ec62b0..a63ced725 100644
--- a/editors/README.md
+++ b/editors/README.md
@@ -1,6 +1,8 @@
1To install experimental VS Code plugin: 1To install experimental VS Code plugin:
2 2
3``` 3```
4$ git clone https://github.com/rust-analyzer/rust-analyzer.git
5$ cd rust-analyzer
4$ cargo install-code 6$ cargo install-code
5``` 7```
6 8
@@ -43,6 +45,8 @@ It's better to remove existing Rust plugins to avoid interference.
43 `#[test]`, this action runs this specific test. If the cursor is 45 `#[test]`, this action runs this specific test. If the cursor is
44 outside of the test function, this re-runs the last test. Do bind 46 outside of the test function, this re-runs the last test. Do bind
45 this to a shortcut! 47 this to a shortcut!
48 - **Format document**. Formats the current file with rustfmt.
49 Rustfmt must be installed separately with `rustup component add rustfmt`.
46 50
47* Typing assists 51* Typing assists
48 - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression. 52 - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression.
diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts
index d440e77c7..2521dff62 100644
--- a/editors/code/src/highlighting.ts
+++ b/editors/code/src/highlighting.ts
@@ -28,7 +28,8 @@ export class Highlighter {
28 ['builtin', decor('#DD6718')], 28 ['builtin', decor('#DD6718')],
29 ['text', decor('#DCDCCC')], 29 ['text', decor('#DCDCCC')],
30 ['attribute', decor('#BFEBBF')], 30 ['attribute', decor('#BFEBBF')],
31 ['literal', decor('#DFAF8F')] 31 ['literal', decor('#DFAF8F')],
32 ['macro', decor('#DFAF8F')]
32 ]; 33 ];
33 34
34 return new Map<string, vscode.TextEditorDecorationType>(decorations); 35 return new Map<string, vscode.TextEditorDecorationType>(decorations);