class RubyLex
def code_terminated?(code, tokens, opens)
def code_terminated?(code, tokens, opens) case check_code_syntax(code) when :unrecoverable_error true when :recoverable_error false when :other_error opens.empty? && !should_continue?(tokens) when :valid !should_continue?(tokens) end end