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
44 bar { |qux| /'fee"/ } # bug#20026
47 bar(class: XXX) do # ruby-indent-keyword-label
52 foo = [1, # ruby-deep-indent
55 foo = { # ruby-deep-indent-disabled
96 foo = [ # ruby-deep-indent-disabled
100 foo( # ruby-deep-indent-disabled
135 # Support for this syntax was removed in Ruby 1.9, so we
136 # probably don't need to handle it either.
145 # Some Cucumber code:
154 return false unless method == :+
155 x = y + z # Bug#16609
167 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
168 d = 4 + 5 + # no '\' needed
171 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
175 foo = obj.bar { |m| tee(m) } +
176 obj.qux { |m| hum(m) }
185 MSG = 'Separate every 3 digits in the integer portion of a number' \
186 'with underscores(_).'
198 while a < b do # "do" is optional
208 # https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206
226 method arg1, # bug#15594
252 it "is a method call with block" do |asd|
261 and_this_one(has) { |block, parameters|
300 # http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation
327 foo = [1, 2, 3].map do |i|
380 a.records().map(&:b).zip(
383 # FIXME: This is not consistent with the example below it, but this
384 # offset only happens if the colon is at eol, which wouldn't be often.
385 # Tokenizing `bar:' as `:bar =>' would be better, but it's hard to
386 # distinguish from a variable reference inside a ternary operator.
401 return render json: {
402 errors: { base: [message] },