We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nth-child
1 parent ce99e12 commit c0f8c2dCopy full SHA for c0f8c2d
src/vscode-css/grammars/css.cson
@@ -1687,6 +1687,24 @@
1687
'match': '(?i)even|odd'
1688
'name': 'support.constant.parity.css'
1689
}
1690
+ {
1691
+ 'begin': '''(?xi)
1692
+ (?<=
1693
+ \\:nth-(?:last-)?child\\(
1694
+ (?:even|odd|[+-]?(\\d+n?|n)(\\s*[+-]\\s*\\d+)?)\\s*
1695
+ )
1696
+ (?:of)
1697
+ '''
1698
+ 'beginCaptures':
1699
+ '0':
1700
+ 'name': 'keyword.operator.nth.of.css'
1701
+ 'end': '(?=\\))'
1702
+ 'patterns': [
1703
1704
+ 'include': '#selector-innards'
1705
+ }
1706
+ ]
1707
1708
]
1709
1710
0 commit comments