File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ Core Grammars:
41
41
- fix(swift) ` warn_unqualified_access ` is an attribute [ Bradley Mackey] [ ]
42
42
- enh(swift) macro attributes are highlighted as keywords [ Bradley Mackey] [ ]
43
43
- enh(stan) updated for version 2.33 (#3859 ) [ Brian Ward] [ ]
44
+ - fix(css) added '_ ' css variable detection [ Md Saad Akhtar] [ ]
44
45
45
46
Dev tool:
46
47
@@ -64,7 +65,7 @@ Dev tool:
64
65
[ Nicholas Thompson ] : https://github.com/NAThompson
65
66
[ Yasith Deelaka ] : https://github.com/YasithD
66
67
[ Brian Ward ] : https://github.com/WardBrian
67
-
68
+ [ Md Saad Akhtar ] : https://github.com/akhtarmdsaad
68
69
69
70
## Version 11.8.0
70
71
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export const MODES = (hljs) => {
38
38
} ,
39
39
CSS_VARIABLE : {
40
40
className : "attr" ,
41
- begin : / - - [ A - Z a - z ] [ A - Z a - z 0 - 9 _ - ] * /
41
+ begin : / - - [ A - Z a - z _ ] [ A - Z a - z 0 - 9 _ - ] * /
42
42
}
43
43
} ;
44
44
} ;
Original file line number Diff line number Diff line change 7
7
<span class="hljs-attr">--textBlue</span>: blue;
8
8
<span class="hljs-attribute">color</span>: <span class="hljs-built_in">var</span>(--textBlue);
9
9
}
10
+
11
+ <span class="hljs-selector-tag">body</span> {
12
+ <span class="hljs-attr">--_margin-top</span>: <span class="hljs-number">1rem</span>;
13
+ <span class="hljs-attribute">margin-top</span>: <span class="hljs-built_in">var</span>(--_margin-top);
14
+ }
Original file line number Diff line number Diff line change 7
7
--textBlue: blue;
8
8
color: var(--textBlue);
9
9
}
10
+
11
+ body {
12
+ --_margin-top: 1rem;
13
+ margin-top: var(--_margin-top);
14
+ }
15
+
You can’t perform that action at this time.
0 commit comments