class Haml::Compiler

def compile_comment

def compile_comment
  condition = "#{@node.value[:conditional]}>" if @node.value[:conditional]
  revealed = @node.value[:revealed]
  open = "<!--#{condition}#{'<!-->' if revealed}"
  close = "#{'<!--' if revealed}#{'<![endif]' if condition}-->"
  unless block_given?
    push_text("#{open} ")
    if @node.value[:parse]
      push_script(@node.value[:text], :in_tag => true, :nuke_inner_whitespace => true)
    else
      push_text(@node.value[:text])
    end
    push_text(" #{close}\n")
    return
  end
  push_text("#{open}\n")
  yield if block_given?
  push_text("#{close}\n")
end