Sha256: 5f7a05cfc969584ef07a0c2da7c99ad74d48b792079f8d4defd5c66bf82f9b01
Contents?: true
Size: 585 Bytes
Versions: 6
Compression:
Stored size: 585 Bytes
Contents
# expand error reporting of Rsec class Rsec::ParseContext def report_error(msg, source) if pos <= @last_fail_pos line = line @last_fail_pos col = col @last_fail_pos line_text = line_text @last_fail_pos expect_tokens = Rsec::Fail.get_tokens @last_fail_mask expects = ", expect token [ #{expect_tokens.join ' | '} ]" else line = line pos col = col pos line_text = line_text pos expects = nil end msg = "#{msg}\nin #{source}:#{line} at #{col}#{expects}" Rsec::SyntaxError.new msg, line_text, line, col end end
Version data entries
6 entries across 6 versions & 2 rubygems