File tree Expand file tree Collapse file tree 5 files changed +19
-5
lines changed
.dev-assets/syntax-issues Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * AT IMPORT
3
+ */
4
+
5
+ /* new syntax rules for @import have no syntax highlighting */
1
6
@import url ("green.css" ) layer suppor ts(selector(& )) (min-width : calc (10px ));
2
7
3
8
/* layer as a function */
4
- @import url ("green.css" ) layer(bar) suppor ts(selector(& )) (min-width : calc (10px ));
9
+ @import url ("green.css" ) layer(bar) suppor ts(selector(& ))
10
+ (min-width : calc (10px ));
Original file line number Diff line number Diff line change 2
2
* AT LAYER
3
3
*/
4
4
5
+ /* layer name has no syntax highlighting */
5
6
.foo {
6
7
@layer base {
7
8
block-size : 100% ;
Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
/* Missing token for `prefers-reduced-motion: reduce` */
6
- @media (prefers-reduced-motion : reduce) {}
6
+ @media (prefers-reduced-motion : reduce) {
7
+ }
Original file line number Diff line number Diff line change 2
2
* GRID PLACEMENT SLASH
3
3
*/
4
4
5
+ /* Property value slash doesn't have its own syntax highlighting */
5
6
.example {
6
7
grid-row : 1 / 3 ;
7
8
grid-column : 1 / -1 ;
Original file line number Diff line number Diff line change 1
- .item > div : nth-child (1 of : not (.hidden )) {
1
+ /**
2
+ * OF :NOT
3
+ */
4
+
5
+ /* `of` and trailing grammar has no syntax highlighting */
6
+ .item > div : nth-child (1 of : not (.hidden )) {
2
7
padding-left : var (--item_margin );
3
8
}
4
-
5
9
.item > div : nth-last-child (1 of : not (.hidden )) {
6
10
padding-right : var (--item_margin );
7
11
}
8
12
13
+ /* Same as above, but using CSS Nesting formatting */
9
14
.item {
10
15
& > div {
11
- & : nth-child (1 of : not (.hidden )) {
16
+ & : nth-child (1 of : not (.hidden )) {
12
17
padding-left : var (--item_margin );
13
18
}
14
19
& : nth-last-child (1 of : not (.hidden )) {
You can’t perform that action at this time.
0 commit comments