diff options
author | Joel Holdbrooks <cjholdbrooks@gmail.com> | 2012-07-03 18:19:05 -0700 |
---|---|---|
committer | Joel Holdbrooks <cjholdbrooks@gmail.com> | 2012-07-03 18:19:05 -0700 |
commit | e796a247e5bf2395ec72b0ae98d68bcb648f5368 (patch) | |
tree | a556ddee7b67b156e7b227e20f1458825bbc527a | |
parent | b9cf7f67d869eead647e237d963ba2db2fdfbc4f (diff) | |
download | coderay-e796a247e5bf2395ec72b0ae98d68bcb648f5368.tar.gz |
use "id" instead of "constant" for css ids
-rw-r--r-- | etc/todo/scanners/css.rb | 2 | ||||
-rw-r--r-- | 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 f1072f1..e9281c7 100644 --- a/etc/todo/scanners/css.rb +++ b/etc/todo/scanners/css.rb @@ -114,7 +114,7 @@ module Scanners 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 7b731ef..c473574 100644 --- a/lib/coderay/scanners/css.rb +++ b/lib/coderay/scanners/css.rb @@ -8,7 +8,7 @@ module Scanners 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 @@ module Scanners 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 |