class Haml::Compiler::CommentCompiler
def compile_conditional_comment(node, &block)
def compile_conditional_comment(node, &block) condition = node.value[:conditional] if node.value[:conditional] =~ /\A\[(\[*[^\[\]]+\]*)\]/ condition = $1 end content = if node.children.empty? compile_text(node) else yield(node) end [:html, :condcomment, condition, content, node.value[:revealed]] end