diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-13 16:43:32 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-13 16:43:32 +0100 |
commit | c07050e2753a78e6975a6b78645970c18d7365b3 (patch) | |
tree | dc582c255dbaa807af1572e997196e8dadfd0bd8 /editors | |
parent | 88d3959c33c3b8729cecbe062cff8474516df29f (diff) | |
parent | 6222f2b7096531cc8501044cdc7b6b5fb07e331b (diff) |
Merge #4400
4400: Enhanced coloring r=georgewfraser a=georgewfraser
This PR builds on #4397 to enhance the existing syntax coloring.
## Underline mutable variables
The textmate scope `markup.underline` underlines identifiers, which is a nice way to make mutable vars stand out:
<img width="327" alt="Screen Shot 2020-05-09 at 1 18 55 PM" src="https://user-images.githubusercontent.com/1369240/81484179-8bb47d80-91f8-11ea-997d-1dcffbe44aa7.png">
## Italicize static variables
The textmate scope `markup.italic` italicizes identifiers. Italic = static is a common convention in IDEs like IntelliJ:
<img width="288" alt="Screen Shot 2020-05-09 at 1 19 14 PM" src="https://user-images.githubusercontent.com/1369240/81484236-cd452880-91f8-11ea-8478-505ee49bc8b3.png">
Co-authored-by: George Fraser <[email protected]>
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/package.json | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 44cb0971e..b8a2182f0 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -623,6 +623,9 @@ | |||
623 | ], | 623 | ], |
624 | "formatSpecifier": [ | 624 | "formatSpecifier": [ |
625 | "punctuation.section.embedded.rust" | 625 | "punctuation.section.embedded.rust" |
626 | ], | ||
627 | "*.mutable": [ | ||
628 | "markup.underline" | ||
626 | ] | 629 | ] |
627 | } | 630 | } |
628 | } | 631 | } |