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]
26 # Regexp after whitelisted method.
29 # Don't mis-match "sub" at the end of words.
30 a = asub / aslb + bsub / bslb;
32 # Highlight the regexp after "if".
33 x = toto / foo if /do bar/ =~ "dobar"
35 # Regexp options are highlighted.
37 /foo/xi != %r{bar}mo.tee
39 bar(class: XXX) do # ruby-indent-keyword-label
44 foo = [1, # ruby-deep-indent
47 foo = { # ruby-deep-indent-disabled
88 foo = [ # ruby-deep-indent-disabled
92 foo( # ruby-deep-indent-disabled
127 # Support for this syntax was removed in Ruby 1.9, so we
128 # probably don't need to handle it either.
137 # Some Cucumber code:
146 return false unless method == :+
147 x = y + z # Bug#16609
159 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
160 d = 4 + 5 + # no '\' needed
163 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
167 foo = obj.bar { |m| tee(m) } +
168 obj.qux { |m| hum(m) }
177 MSG = 'Separate every 3 digits in the integer portion of a number' \
178 'with underscores(_).'
190 while a < b do # "do" is optional
200 # https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206
218 method arg1, # bug#15594
244 it "is a method call with block" do |asd|
253 and_this_one(has) { |block, parameters|
292 # http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation
319 foo = [1, 2, 3].map do |i|
372 a.records().map(&:b).zip(
375 # FIXME: This is not consistent with the example below it, but this
376 # offset only happens if the colon is at eol, which wouldn't be often.
377 # Tokenizing `bar:' as `:bar =>' would be better, but it's hard to
378 # distinguish from a variable reference inside a ternary operator.
393 return render json: {
394 errors: { base: [message] },