class Haml::Parser
def error_with_lineno(error)
def error_with_lineno(error) return error if error.line trace = error.backtrace.first return error unless trace line = trace.match(/\d+\z/).to_s.to_i SyntaxError.new(error.message, line) end
def error_with_lineno(error) return error if error.line trace = error.backtrace.first return error unless trace line = trace.match(/\d+\z/).to_s.to_i SyntaxError.new(error.message, line) end