1 if something_wrong? # ruby-move-to-block-skips-heredoc
2 ActiveSupport::Deprecation.warn(<<-eowarn)
14 b = %Q{This is a "string"}
18 d = %(hello (nested) world)
20 # Don't propertize percent literals inside strings.
21 "(%s, %s)" % [123, 456]
30 # Regexp after whitelisted method.
33 # Don't mis-match "sub" at the end of words.
34 a = asub / aslb + bsub / bslb;
36 # Highlight the regexp after "if".
37 x = toto / foo if /do bar/ =~ "dobar"
39 # Regexp options are highlighted.
41 /foo/xi != %r{bar}mo.tee
43 bar(class: XXX) do # ruby-indent-keyword-label
48 foo = [1, # ruby-deep-indent
51 foo = { # ruby-deep-indent-disabled
92 foo = [ # ruby-deep-indent-disabled
96 foo( # ruby-deep-indent-disabled
131 # Support for this syntax was removed in Ruby 1.9, so we
132 # probably don't need to handle it either.
141 # Some Cucumber code:
150 return false unless method == :+
151 x = y + z # Bug#16609
163 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
164 d = 4 + 5 + # no '\' needed
167 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
171 foo = obj.bar { |m| tee(m) } +
172 obj.qux { |m| hum(m) }
181 MSG = 'Separate every 3 digits in the integer portion of a number' \
182 'with underscores(_).'
194 while a < b do # "do" is optional
204 # https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206
222 method arg1, # bug#15594
248 it "is a method call with block" do |asd|
257 and_this_one(has) { |block, parameters|
296 # http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation
323 foo = [1, 2, 3].map do |i|
376 a.records().map(&:b).zip(
379 # FIXME: This is not consistent with the example below it, but this
380 # offset only happens if the colon is at eol, which wouldn't be often.
381 # Tokenizing `bar:' as `:bar =>' would be better, but it's hard to
382 # distinguish from a variable reference inside a ternary operator.
397 return render json: {
398 errors: { base: [message] },