Skip to content

Commit ef582f4

Browse files
committed
Add a few more token scopes to themes
Fixes microsoft#80783
1 parent c26146d commit ef582f4

11 files changed

Lines changed: 610 additions & 37 deletions

File tree

extensions/cpp/test/colorize-fixtures/test.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ void Rectangle::set_values (int x, int y) {
1616
height = y;
1717
}
1818

19+
long double operator "" _w(long double);
20+
#define MY_MACRO(a, b)
21+
1922
int main () {
23+
1.2_w; // calls operator "" _w(1.2L)
24+
asm("movl %a %b");
25+
MY_MACRO(1, 2);
2026
Rectangle rect;
2127
rect.set_values (3,4);
2228
cout << "area: " << rect.area();

extensions/cpp/test/colorize-results/test-23630_cpp.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
"c": "_UCRT",
3737
"t": "source.cpp meta.preprocessor.conditional.cpp entity.name.function.preprocessor.cpp",
3838
"r": {
39-
"dark_plus": "entity.name.function: #DCDCAA",
40-
"light_plus": "entity.name.function: #795E26",
41-
"dark_vs": "meta.preprocessor: #569CD6",
42-
"light_vs": "meta.preprocessor: #0000FF",
39+
"dark_plus": "entity.name.function.preprocessor: #569CD6",
40+
"light_plus": "entity.name.function.preprocessor: #0000FF",
41+
"dark_vs": "entity.name.function.preprocessor: #569CD6",
42+
"light_vs": "entity.name.function.preprocessor: #0000FF",
4343
"hc_black": "entity.name.function: #DCDCAA"
4444
}
4545
},
@@ -91,10 +91,10 @@
9191
"c": "_UCRT",
9292
"t": "source.cpp meta.preprocessor.macro.cpp entity.name.function.preprocessor.cpp",
9393
"r": {
94-
"dark_plus": "entity.name.function: #DCDCAA",
95-
"light_plus": "entity.name.function: #795E26",
96-
"dark_vs": "meta.preprocessor: #569CD6",
97-
"light_vs": "meta.preprocessor: #0000FF",
94+
"dark_plus": "entity.name.function.preprocessor: #569CD6",
95+
"light_plus": "entity.name.function.preprocessor: #0000FF",
96+
"dark_vs": "entity.name.function.preprocessor: #569CD6",
97+
"light_vs": "entity.name.function.preprocessor: #0000FF",
9898
"hc_black": "entity.name.function: #DCDCAA"
9999
}
100100
},

extensions/cpp/test/colorize-results/test-23850_cpp.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
"c": "_UCRT",
3737
"t": "source.cpp meta.preprocessor.conditional.cpp entity.name.function.preprocessor.cpp",
3838
"r": {
39-
"dark_plus": "entity.name.function: #DCDCAA",
40-
"light_plus": "entity.name.function: #795E26",
41-
"dark_vs": "meta.preprocessor: #569CD6",
42-
"light_vs": "meta.preprocessor: #0000FF",
39+
"dark_plus": "entity.name.function.preprocessor: #569CD6",
40+
"light_plus": "entity.name.function.preprocessor: #0000FF",
41+
"dark_vs": "entity.name.function.preprocessor: #569CD6",
42+
"light_vs": "entity.name.function.preprocessor: #0000FF",
4343
"hc_black": "entity.name.function: #DCDCAA"
4444
}
4545
},
@@ -80,10 +80,10 @@
8080
"c": "_UCRT",
8181
"t": "source.cpp meta.preprocessor.macro.cpp entity.name.function.preprocessor.cpp",
8282
"r": {
83-
"dark_plus": "entity.name.function: #DCDCAA",
84-
"light_plus": "entity.name.function: #795E26",
85-
"dark_vs": "meta.preprocessor: #569CD6",
86-
"light_vs": "meta.preprocessor: #0000FF",
83+
"dark_plus": "entity.name.function.preprocessor: #569CD6",
84+
"light_plus": "entity.name.function.preprocessor: #0000FF",
85+
"dark_vs": "entity.name.function.preprocessor: #569CD6",
86+
"light_vs": "entity.name.function.preprocessor: #0000FF",
8787
"hc_black": "entity.name.function: #DCDCAA"
8888
}
8989
},

extensions/cpp/test/colorize-results/test-78769_cpp.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
"c": "DOCTEST_IMPLEMENT_FIXTURE",
3737
"t": "source.cpp meta.preprocessor.macro.cpp entity.name.function.preprocessor.cpp",
3838
"r": {
39-
"dark_plus": "entity.name.function: #DCDCAA",
40-
"light_plus": "entity.name.function: #795E26",
41-
"dark_vs": "meta.preprocessor: #569CD6",
42-
"light_vs": "meta.preprocessor: #0000FF",
39+
"dark_plus": "entity.name.function.preprocessor: #569CD6",
40+
"light_plus": "entity.name.function.preprocessor: #0000FF",
41+
"dark_vs": "entity.name.function.preprocessor: #569CD6",
42+
"light_vs": "entity.name.function.preprocessor: #0000FF",
4343
"hc_black": "entity.name.function: #DCDCAA"
4444
}
4545
},

extensions/cpp/test/colorize-results/test_cc.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
"c": "B4G_DEBUG_CHECK",
3737
"t": "source.cpp meta.preprocessor.conditional.cpp entity.name.function.preprocessor.cpp",
3838
"r": {
39-
"dark_plus": "entity.name.function: #DCDCAA",
40-
"light_plus": "entity.name.function: #795E26",
41-
"dark_vs": "meta.preprocessor: #569CD6",
42-
"light_vs": "meta.preprocessor: #0000FF",
39+
"dark_plus": "entity.name.function.preprocessor: #569CD6",
40+
"light_plus": "entity.name.function.preprocessor: #0000FF",
41+
"dark_vs": "entity.name.function.preprocessor: #569CD6",
42+
"light_vs": "entity.name.function.preprocessor: #0000FF",
4343
"hc_black": "entity.name.function: #DCDCAA"
4444
}
4545
},
@@ -1807,10 +1807,10 @@
18071807
"c": "movw $0x38, %ax; ltr %ax",
18081808
"t": "source.cpp meta.function.definition.cpp meta.body.function.definition.cpp meta.asm.cpp string.quoted.double.cpp meta.embedded.assembly.cpp",
18091809
"r": {
1810-
"dark_plus": "meta.embedded: #D4D4D4",
1811-
"light_plus": "meta.embedded: #000000",
1812-
"dark_vs": "meta.embedded: #D4D4D4",
1813-
"light_vs": "meta.embedded: #000000",
1810+
"dark_plus": "meta.embedded.assembly: #CE9178",
1811+
"light_plus": "meta.embedded.assembly: #A31515",
1812+
"dark_vs": "meta.embedded.assembly: #CE9178",
1813+
"light_vs": "meta.embedded.assembly: #A31515",
18141814
"hc_black": "meta.embedded: #FFFFFF"
18151815
}
18161816
},

0 commit comments

Comments
 (0)