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
53 foo = [ # ruby-deep-indent-disabled
57 foo( # ruby-deep-indent-disabled
92 # Support for this syntax was removed in Ruby 1.9, so we
93 # probably don't need to handle it either.
102 # Some Cucumber code:
112 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
113 d = 4 + 5 + # no '\' needed
116 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
120 foo = obj.bar { |m| tee(m) } +
121 obj.qux { |m| hum(m) }
130 MSG = 'Separate every 3 digits in the integer portion of a number' \
131 'with underscores(_).'
143 while a < b do # "do" is optional
153 # https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206
171 method arg1, # bug#15594
194 it "is a method call with block" do |asd|
202 and_this_one(has) { |block, parameters|
241 # http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation
266 foo = [1, 2, 3].map do |i|