Skip to content

Commit 70c9ba8

Browse files
committed
fix CSS scanner for things like "nth-child(2n)"
1 parent 62a0be9 commit 70c9ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/scanners/css.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module RE # :nodoc:
2525

2626
HexColor = /#(?:#{Hex}{6}|#{Hex}{3})/
2727

28-
Num = /-?(?:[0-9]*\.[0-9]+|[0-9]+)/
28+
Num = /-?(?:[0-9]*\.[0-9]+|[0-9]+)n?/
2929
Name = /#{NMChar}+/
3030
Ident = /-?#{NMStart}#{NMChar}*/
3131
AtKeyword = /@#{Ident}/

0 commit comments

Comments
 (0)