class Haml::Parser

def comment(text)

Renders an XHTML comment.
def comment(text)
  if text[0..1] == '!['
    revealed = true
    text = text[1..-1]
  else
    revealed = false
  end
  conditional, text = balance(text, ?[, ?]) if text[0] == ?[
  text.strip!
  if contains_interpolation?(text)
    parse = true
    text = unescape_interpolation(text)
  else
    parse = false
  end
  if block_opened? && !text.empty?
    raise SyntaxError.new(Haml::Error.message(:illegal_nesting_content), @next_line.index)
  end
  ParseNode.new(:comment, @line.index + 1, :conditional => conditional, :text => text, :revealed => revealed, :parse => parse)
end