Skip to content

Commit

Permalink
use :tag instead of :type for identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
noprompt committed Jul 24, 2012
1 parent e796a24 commit 4eb4324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/coderay/scanners/css.rb
Expand Up @@ -7,7 +7,7 @@ class CSS < Scanner

KINDS_NOT_LOC = [
:comment,
:class, :pseudo_class, :type,
:class, :pseudo_class, :tag,
:id, :directive,
:key, :value, :operator, :color, :float, :string,
:error, :important,
Expand Down Expand Up @@ -67,7 +67,7 @@ def scan_tokens encoder, options
elsif case states.last
when :initial, :media
if match = scan(/(?>#{RE::Ident})(?!\()|\*/ox)
encoder.text_token match, :type
encoder.text_token match, :tag
next
elsif match = scan(RE::Class)
encoder.text_token match, :class
Expand Down Expand Up @@ -102,7 +102,7 @@ def scan_tokens encoder, options

when :media_before_name
if match = scan(RE::Ident)
encoder.text_token match, :type
encoder.text_token match, :tag
states[-1] = :media_after_name
next
end
Expand Down

0 comments on commit 4eb4324

Please sign in to comment.