summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-07-13 16:34:41 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-07-13 16:34:41 +0200
commit70c9ba896e1bba5ac727fb6fdfc3ba94510e652d (patch)
treead48965fc45bd5f606453f552f427094995402a1
parent62a0be9509f8814902a4a97df4ad84913728d059 (diff)
downloadcoderay-70c9ba896e1bba5ac727fb6fdfc3ba94510e652d.tar.gz
fix CSS scanner for things like "nth-child(2n)"
-rw-r--r--lib/coderay/scanners/css.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/css.rb b/lib/coderay/scanners/css.rb
index 5977b9c..55d5239 100644
--- a/lib/coderay/scanners/css.rb
+++ b/lib/coderay/scanners/css.rb
@@ -25,7 +25,7 @@ module Scanners
HexColor = /#(?:#{Hex}{6}|#{Hex}{3})/
- Num = /-?(?:[0-9]*\.[0-9]+|[0-9]+)/
+ Num = /-?(?:[0-9]*\.[0-9]+|[0-9]+)n?/
Name = /#{NMChar}+/
Ident = /-?#{NMStart}#{NMChar}*/
AtKeyword = /@#{Ident}/