diff --git a/etc/todo/scanners/css.rb b/etc/todo/scanners/css.rb index f1072f13..e9281c7a 100644 --- a/etc/todo/scanners/css.rb +++ b/etc/todo/scanners/css.rb @@ -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 diff --git a/lib/coderay/scanners/css.rb b/lib/coderay/scanners/css.rb index 7b731efc..c4735749 100644 --- a/lib/coderay/scanners/css.rb +++ b/lib/coderay/scanners/css.rb @@ -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: @@ -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