diff options
author | Joel Holdbrooks <cjholdbrooks@gmail.com> | 2012-07-24 10:59:50 -0700 |
---|---|---|
committer | Joel Holdbrooks <cjholdbrooks@gmail.com> | 2012-07-24 10:59:50 -0700 |
commit | 4eb4324c6fb20b9b5e7f73f17bc21e4a17fd3073 (patch) | |
tree | fcbc539d17a4a518cd7361e5fd322d3a48e460c7 | |
parent | e796a247e5bf2395ec72b0ae98d68bcb648f5368 (diff) | |
download | coderay-4eb4324c6fb20b9b5e7f73f17bc21e4a17fd3073.tar.gz |
use :tag instead of :type for identifiers
-rw-r--r-- | lib/coderay/scanners/css.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/coderay/scanners/css.rb b/lib/coderay/scanners/css.rb index c473574..503e14e 100644 --- a/lib/coderay/scanners/css.rb +++ b/lib/coderay/scanners/css.rb @@ -7,7 +7,7 @@ module Scanners KINDS_NOT_LOC = [ :comment, - :class, :pseudo_class, :type, + :class, :pseudo_class, :tag, :id, :directive, :key, :value, :operator, :color, :float, :string, :error, :important, @@ -67,7 +67,7 @@ module Scanners 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 @@ -102,7 +102,7 @@ module Scanners 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 |