We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23ae7cf commit 4433e67Copy full SHA for 4433e67
lib/irb/ruby-lex.rb
@@ -219,7 +219,7 @@ def set_auto_indent(context)
219
end
220
221
222
- def check_state(code, tokens = nil, context: nil)
+ def check_state(code, tokens = nil, context:)
223
tokens = self.class.ripper_lex_without_warning(code, context: context) unless tokens
224
ltype = process_literal_type(tokens)
225
indent = process_nesting_level(tokens)
@@ -790,7 +790,7 @@ def process_literal_type(tokens)
790
791
792
793
- def check_termination_in_prev_line(code, context: nil)
+ def check_termination_in_prev_line(code, context:)
794
tokens = self.class.ripper_lex_without_warning(code, context: context)
795
past_first_newline = false
796
index = tokens.rindex do |t|
0 commit comments