Skip to content

Commit

Permalink
use "id" instead of "constant" for css ids
Browse files Browse the repository at this point in the history
  • Loading branch information
noprompt committed Jul 4, 2012
1 parent b9cf7f6 commit e796a24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/todo/scanners/css.rb
Expand Up @@ -114,7 +114,7 @@ def scan_tokens tokens, options
kind = :class

elsif scan RE::Id
kind = :constant
kind = :id

elsif scan RE::Ident
kind = :label
Expand Down
4 changes: 2 additions & 2 deletions lib/coderay/scanners/css.rb
Expand Up @@ -8,7 +8,7 @@ class CSS < Scanner
KINDS_NOT_LOC = [
:comment,
:class, :pseudo_class, :type,
:constant, :directive,
:id, :directive,
:key, :value, :operator, :color, :float, :string,
:error, :important,
] # :nodoc:
Expand Down Expand Up @@ -73,7 +73,7 @@ def scan_tokens encoder, options
encoder.text_token match, :class
next
elsif match = scan(RE::Id)
encoder.text_token match, :constant
encoder.text_token match, :id
next
elsif match = scan(RE::PseudoClass)
encoder.text_token match, :pseudo_class
Expand Down

0 comments on commit e796a24

Please sign in to comment.