@@ -7,8 +7,8 @@ class CSS < Scanner
7
7
8
8
KINDS_NOT_LOC = [
9
9
:comment ,
10
- :class , :pseudo_class , :type ,
11
- :constant , :directive ,
10
+ :class , :pseudo_class , :tag ,
11
+ :id , :directive ,
12
12
:key , :value , :operator , :color , :float , :string ,
13
13
:error , :important ,
14
14
] # :nodoc:
@@ -64,13 +64,13 @@ def scan_tokens encoder, options
64
64
elsif case states . last
65
65
when :initial , :media
66
66
if match = scan ( /(?>#{ RE ::Ident } )(?!\( )|\* /ox )
67
- encoder . text_token match , :type
67
+ encoder . text_token match , :tag
68
68
next
69
69
elsif match = scan ( RE ::Class )
70
70
encoder . text_token match , :class
71
71
next
72
72
elsif match = scan ( RE ::Id )
73
- encoder . text_token match , :constant
73
+ encoder . text_token match , :id
74
74
next
75
75
elsif match = scan ( RE ::PseudoClass )
76
76
encoder . text_token match , :pseudo_class
@@ -99,7 +99,7 @@ def scan_tokens encoder, options
99
99
100
100
when :media_before_name
101
101
if match = scan ( RE ::Ident )
102
- encoder . text_token match , :type
102
+ encoder . text_token match , :tag
103
103
states [ -1 ] = :media_after_name
104
104
next
105
105
end
0 commit comments