8000 use "id" instead of "constant" for css ids · noprompt/coderay@e796a24 · GitHub
[go: up one dir, main page]

Skip to content

Commit e796a24

Browse files
committed
use "id" instead of "constant" for css ids
1 parent b9cf7f6 commit e796a24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

etc/todo/scanners/css.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def scan_tokens tokens, options
114114
kind = :class
115115

116116
elsif scan RE::Id
117-
kind = :constant
117+
kind = :id
118118

119119
elsif scan RE::Ident
120120
kind = :label

lib/coderay/scanners/css.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CSS < Scanner
88
KINDS_NOT_LOC = [
99
:comment,
1010
:class, :pseudo_class, :type,
11-
:constant, :directive,
11+
:id, :directive,
1212
:key, :value, :operator, :color, :float, :string,
1313
:error, :important,
1414
] # :nodoc:
@@ -73,7 +73,7 @@ def scan_tokens encoder, options
7373
encoder.text_token match, :class
7474
next
7575
elsif match = scan(RE::Id)
76-
encoder.text_token match, :constant
76+
encoder.text_token match, :id
7777
next
7878
elsif match = scan(RE::PseudoClass)
7979
encoder.text_token match, :pseudo_class

0 commit comments

Comments
 (0)
0