Skip to content

Commit 8c8c5b6

Browse files
authored
!important different color (microsoft#245654)
Fixes microsoft#244632
1 parent 3651736 commit 8c8c5b6

4 files changed

Lines changed: 47 additions & 1 deletion

File tree

extensions/vscode-colorize-tests/test/colorize-fixtures/test.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
body {
1818
font: 75% georgia, sans-serif;
19-
line-height: 1.88889;
19+
line-height: 1.88889 !important;
2020
color: #555753;
2121
background: #fff url(blossoms.jpg) no-repeat bottom right;
2222
margin: 0;

extensions/vscode-colorize-tests/test/colorize-results/test_css.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,34 @@
12591259
"light_modern": "constant.numeric: #098658"
12601260
}
12611261
},
1262+
{
1263+
"c": " ",
1264+
"t": "source.css meta.property-list.css meta.property-value.css",
1265+
"r": {
1266+
"dark_plus": "default: #D4D4D4",
1267+
"light_plus": "default: #000000",
1268+
"dark_vs": "default: #D4D4D4",
1269+
"light_vs": "default: #000000",
1270+
"hc_black": "default: #FFFFFF",
1271+
"dark_modern": "default: #CCCCCC",
1272+
"hc_light": "default: #292929",
1273+
"light_modern": "default: #3B3B3B"
1274+
}
1275+
},
1276+
{
1277+
"c": "!important",
1278+
"t": "source.css meta.property-list.css meta.property-value.css keyword.other.important.css",
1279+
"r": {
1280+
"dark_plus": "keyword: #569CD6",
1281+
"light_plus": "keyword: #0000FF",
1282+
"dark_vs": "keyword: #569CD6",
1283+
"light_vs": "keyword: #0000FF",
1284+
"hc_black": "keyword: #569CD6",
1285+
"dark_modern": "keyword: #569CD6",
1286+
"hc_light": "keyword: #0F4A85",
1287+
"light_modern": "keyword: #0000FF"
1288+
}
1289+
},
12621290
{
12631291
"c": ";",
12641292
"t": "source.css meta.property-list.css punctuation.terminator.rule.css",

extensions/vscode-colorize-tests/test/colorize-tree-sitter-results/test_css.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,20 @@
727727
"light_modern": "constant.numeric: #098658"
728728
}
729729
},
730+
{
731+
"c": "!important",
732+
"t": "keyword.other.important.css",
733+
"r": {
734+
"dark_plus": "keyword: #569CD6",
735+
"light_plus": "keyword: #0000FF",
736+
"dark_vs": "keyword: #569CD6",
737+
"light_vs": "keyword: #0000FF",
738+
"hc_black": "keyword: #569CD6",
739+
"dark_modern": "keyword: #569CD6",
740+
"hc_light": "keyword: #0F4A85",
741+
"light_modern": "keyword: #0000FF"
742+
}
743+
},
730744
{
731745
"c": ";",
732746
"t": "",

src/vs/editor/common/languages/highlights/css.scm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,7 @@
104104
(#eq? @support.function.url.css "url"))
105105
(arguments
106106
(plain_value) @variable.parameter.url.css))
107+
108+
; Keywords
109+
110+
(important) @keyword.other.important.css

0 commit comments

Comments
 (0)