Skip to content

Commit 71e94b1

Browse files
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]>
2 parents 1afdc57 + fd83d0e commit 71e94b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editors/code/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,9 @@
604604
{
605605
"language": "rust",
606606
"scopes": {
607+
"macro": [
608+
"entity.name.function.macro.rust"
609+
],
607610
"attribute": [
608611
"meta.attribute.rust"
609612
],

0 commit comments

Comments
 (0)