Skip to content

Commit 4eb4324

Browse files
committed
use :tag instead of :type for identifiers
1 parent e796a24 commit 4eb4324

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/coderay/scanners/css.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class CSS < Scanner
77

88
KINDS_NOT_LOC = [
99
:comment,
10-
:class, :pseudo_class, :type,
10+
:class, :pseudo_class, :tag,
1111
:id, :directive,
1212
:key, :value, :operator, :color, :float, :string,
1313
:error, :important,
@@ -67,7 +67,7 @@ def scan_tokens encoder, options
6767
elsif case states.last
6868
when :initial, :media
6969
if match = scan(/(?>#{RE::Ident})(?!\()|\*/ox)
70-
encoder.text_token match, :type
70+
encoder.text_token match, :tag
7171
next
7272
elsif match = scan(RE::Class)
7373
encoder.text_token match, :class
@@ -102,7 +102,7 @@ def scan_tokens encoder, options
102102

103103
when :media_before_name
104104
if match = scan(RE::Ident)
105-
encoder.text_token match, :type
105+
encoder.text_token match, :tag
106106
states[-1] = :media_after_name
107107
next
108108
end

0 commit comments

Comments
 (0)