File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ h2. Changes in 1.1
6
6
7
7
* Diff scanner: Highlight inline changes in multi-line changes [#99]
8
8
* Remove double-click toggle handler from HTML table output
9
+ * Fixes to CSS scanner (floats, pseudoclasses)
9
10
* Display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom]
10
11
* @CodeRay::TokenKinds@ should not be frozen [#130, thanks to Gavin Kistner]
11
12
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module RE # :nodoc:
27
27
HexColor = /#(?:#{ Hex } {6}|#{ Hex } {3})/
28
28
Color = /#{ HexColor } /
29
29
30
- Num = /-?(?:[0-9]+|[0-9]*\. [0-9]+)/
30
+ Num = /-?(?:[0-9]+(?! \. \d ) |[0-9]*\. [0-9]+)/
31
31
Name = /#{ NMChar } +/
32
32
Ident = /-?#{ NMStart } #{ NMChar } */
33
33
AtKeyword = /@#{ Ident } /
@@ -44,7 +44,7 @@ module RE # :nodoc:
44
44
45
45
Id = /##{ Name } /
46
46
Class = /\. #{ Name } /
47
- PseudoClass = /:#{ Name } /
47
+ PseudoClass = /::? #{ Name } /
48
48
AttributeSelector = /\[ [^\] ]*\] ?/
49
49
end
50
50
You can’t perform that action at this time.
0 commit comments