diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-17 10:07:22 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-17 10:07:22 +0100 |
commit | 71e94b1d0bf7c58aa377513f010fcb3f56081f5f (patch) | |
tree | 3731d81c56d9419291fe2b8fb2b9e34fd547cd11 /editors/code | |
parent | 1afdc579297f68dadbe8ee580040ec6ca95cc58b (diff) | |
parent | fd83d0e9ba4605d8060ff0eca83ae9de0202a8a7 (diff) |
Merge #4473
4473: Color macros r=matklad a=georgewfraser
Adds a fallback scope for macros. Before:
<img width="359" alt="Screen Shot 2020-05-15 at 7 31 03 PM" src="https://user-images.githubusercontent.com/1369240/82108339-a304d680-96e2-11ea-9521-e95d5d330c32.png">
After:
<img width="373" alt="Screen Shot 2020-05-15 at 7 29 58 PM" src="https://user-images.githubusercontent.com/1369240/82108308-81a3ea80-96e2-11ea-8660-7f6979df59bf.png">
Note how `hashset` in `maplit::hashset` is now yellow.
Fixes #4462
Co-authored-by: George Fraser <[email protected]>
Diffstat (limited to 'editors/code')
-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 4e7e3faf7..2dbbde852 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -604,6 +604,9 @@ | |||
604 | { | 604 | { |
605 | "language": "rust", | 605 | "language": "rust", |
606 | "scopes": { | 606 | "scopes": { |
607 | "macro": [ | ||
608 | "entity.name.function.macro.rust" | ||
609 | ], | ||
607 | "attribute": [ | 610 | "attribute": [ |
608 | "meta.attribute.rust" | 611 | "meta.attribute.rust" |
609 | ], | 612 | ], |