1 if something_wrong? # ruby-move-to-block-skips-heredoc
2 ActiveSupport::Deprecation.warn(<<-eowarn)
10 b = %Q{This is a "string"}
14 d = %(hello (nested) world)
16 # Don't propertize percent literals inside strings.
17 "(%s, %s)" % [123, 456]
23 # Regexp after whitelisted method.
26 # Don't mis-match "sub" at the end of words.
27 a = asub / aslb + bsub / bslb;
29 # Highlight the regexp after "if".
30 x = toto / foo if /do bar/ =~ "dobar"
32 bar(class: XXX) do # ruby-indent-keyword-label
37 foo = [1, # ruby-deep-indent
40 foo = { # ruby-deep-indent-disabled
81 foo = [ # ruby-deep-indent-disabled
85 foo( # ruby-deep-indent-disabled
120 # Support for this syntax was removed in Ruby 1.9, so we
121 # probably don't need to handle it either.
130 # Some Cucumber code:
140 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
141 d = 4 + 5 + # no '\' needed
144 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
148 foo = obj.bar { |m| tee(m) } +
149 obj.qux { |m| hum(m) }
158 MSG = 'Separate every 3 digits in the integer portion of a number' \
159 'with underscores(_).'
171 while a < b do # "do" is optional
181 # https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206
199 method arg1, # bug#15594
225 it "is a method call with block" do |asd|
233 and_this_one(has) { |block, parameters|
272 # http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation
299 foo = [1, 2, 3].map do |i|