module Haml::Parser
def silent_script(text)
def silent_script(text) return haml_comment(text[2..-1]) if text[1] == SILENT_COMMENT raise SyntaxError.new(<<END.rstrip, @index - 1) if text[1..-1].strip == "end" don't need to use "- end" in Haml. Un-indent to close a block: foo? trong Foo! se t foo. his line is un-indented, so it isn't part of the "if" block text = handle_ruby_multiline(text) keyword = block_keyword(text) @tab_up = ["if", "case"].include?(keyword) ParseNode.new(:silent_script, @index, :text => text[1..-1], :keyword => keyword) end