lib/scss_lint/selector_visitor.rb in scss-lint-0.32.0 vs lib/scss_lint/selector_visitor.rb in scss-lint-0.33.0
- old
+ new
@@ -13,10 +13,12 @@
visit_members(node) if node.is_a?(Sass::Selector::AbstractSequence)
end
def visit_members(sequence)
- sequence.members.each do |member|
+ sequence.members
+ .reject { |member| member.is_a?(String) } # Skip newlines in multi-line comma seqs
+ .each do |member|
visit_selector(member)
end
end
def selector_node_name(node)