Skip to content

Commit

Permalink
Merge #4473
Browse files Browse the repository at this point in the history
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 <george@fivetran.com>
  • Loading branch information
bors[bot] and georgewfraser authored May 17, 2020
2 parents 1afdc57 + fd83d0e commit 71e94b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editors/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,9 @@
{
"language": "rust",
"scopes": {
"macro": [
"entity.name.function.macro.rust"
],
"attribute": [
"meta.attribute.rust"
],
Expand Down

0 comments on commit 71e94b1

Please sign in to comment.