From e796a247e5bf2395ec72b0ae98d68bcb648f5368 Mon Sep 17 00:00:00 2001 From: Joel Holdbrooks Date: Tue, 3 Jul 2012 18:19:05 -0700 Subject: [PATCH] use "id" instead of "constant" for css ids --- etc/todo/scanners/css.rb | 2 +- lib/coderay/scanners/css.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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