An exception matcher that matches only subsets of SyntaxErrors that can be fixed by adding more input to the buffer.
# File lib/method_source/code_helpers.rb, line 125 def self.===(ex) return false unless SyntaxError === ex case ex.message when /unexpected (\$end|end-of-file|END_OF_FILE)/, # mri, jruby, ironruby /embedded document meets end of file/, # =begin /unterminated (quoted string|string|regexp) meets end of file/, # "quoted string" is ironruby /missing 'end' for/, /: expecting '[})\]]'$/, /can't find string ".*" anywhere before EOF/, /: expecting keyword_end/, /expecting kWHEN/ # rbx true else false end end
Generated with the Darkfish Rdoc Generator 2.