Skip to content

Commit

Permalink
Use ripper_lex_without_warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Dec 27, 2021
1 parent 3f6ea92 commit b7536dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/reline/yamatanooroti/termination_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class TerminationChecker < RubyLex
def terminated?(code)
code.gsub!(/\n*$/, '').concat("\n")
@tokens = Ripper.lex(code)
@tokens = self.class.ripper_lex_without_warning(code)
continue = process_continue
code_block_open = check_code_block(code)
indent = process_nesting_level
Expand Down

0 comments on commit b7536dc

Please sign in to comment.