Skip to content

Commit

Permalink
Add support for the "in" clause of Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
knu authored and zenspider committed Jun 22, 2020
1 parent 732331b commit b15e372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/erm_buffer.rb
Expand Up @@ -133,7 +133,7 @@ class Parser < ::Ripper #:nodoc: internal use only
# c - continue - period followed by return (or other way around?)

INDENT_KW = [:begin, :def, :case, :module, :class, :do, :for]
BACKDENT_KW = [:elsif, :else, :when, :rescue, :ensure]
BACKDENT_KW = [:elsif, :else, :when, :in, :rescue, :ensure]
BEGINDENT_KW = [:if, :unless, :while, :until]
POSTCOND_KW = [:if, :unless, :or, :and]
PRE_OPTIONAL_DO_KW = [:in, :while, :until]
Expand Down

0 comments on commit b15e372

Please sign in to comment.