We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00509ec commit 1041c84Copy full SHA for 1041c84
lib/coderay/scanners/scss.rb
@@ -79,12 +79,20 @@ def scan_tokens encoder, options
79
end
80
81
when :block
82
- if match = scan(/(?>#{RE::Ident})(?!\()/ox)
+ # check for nested selectors class or element
83
+ if match = scan(/(\.|\%)[-_a-zA-Z0-9]+/)
84
+ encoder.text_token match, :class
85
+ next
86
+ # TODO: test for tag
87
+ # assume standard block now
88
+ elsif match = scan(/(?>#{RE::Ident})(?!\()/ox)
89
if value_expected
90
encoder.text_token match, :value
91
else
92
encoder.text_token match, :key
93
94
+
95
96
next
97
98
0 commit comments