| Module | MethodSource::CodeHelpers::IncompleteExpression |
| In: |
lib/method_source/code_helpers.rb
|
An exception matcher that matches only subsets of SyntaxErrors that can be fixed by adding more input to the buffer.
| GENERIC_REGEXPS | = | [ /unexpected (\$end|end-of-file|end-of-input|END_OF_FILE)/, # mri, jruby, ruby-2.0, ironruby /embedded document meets end of file/, # =begin /unterminated (quoted string|string|regexp) meets end of file/, # "quoted string" is ironruby /can't find string ".*" anywhere before EOF/, # rbx and jruby /missing 'end' for/, /expecting kWHEN/ |
| RBX_ONLY_REGEXPS | = | [ /expecting '[})\]]'(?:$|:)/, /expecting keyword_end/ |