Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit d8bbfe3

Browse files
committed
Fix *-child syntax highlighting
1 parent 4c059a3 commit d8bbfe3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

syntaxes/css.styled.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,9 +1100,13 @@
11001100
"include": "#interpolation"
11011101
},
11021102
{
1103-
"match": "\\d+",
1103+
"match": "(?i)[+-]?(\\d+n?|n)(\\s*[+-]\\s*\\d+)?",
11041104
"name": "constant.numeric.css"
11051105
},
1106+
{
1107+
"match": "(?i)even|odd",
1108+
"name": "support.constant.parity.css"
1109+
},
11061110
{
11071111
"match": "(?<=\\d)n\\b|\\b(n|even|odd)\\b",
11081112
"name": "constant.other.scss"

0 commit comments

Comments
 (0)