1 if something_wrong
? # ruby-move-to-block-skips-heredoc
2 ActiveSupport
::Deprecation.warn(<<-eowarn)
9 b
= %Q{This is a "string"}
13 d = %(hello (nested) world)
15 # Don't propertize percent literals inside strings.
16 "(%s, %s)" % [123, 456]
22 # Regexp after whitelisted method.
25 # Don't mis-match "sub" at the end of words.
26 a = asub / aslb + bsub / bslb;
28 # Highlight the regexp after "if".
29 x = toto / foo if /do bar/ =~ "dobar"
31 bar(class: XXX) do # ruby-indent-keyword-label
36 foo = [1, # ruby-deep-indent
39 foo = { # ruby-deep-indent-disabled
48 foo = [ # ruby-deep-indent-disabled
52 foo( # ruby-deep-indent-disabled
87 # Support for this syntax was removed in Ruby 1.9, so we
88 # probably don't need to handle it either.
107 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
108 d = 4 + 5 + # no '\' needed
111 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
122 MSG = 'Separate every 3 digits in the integer portion of a number' \
123 'with underscores(_).'
135 while a < b do # "do" is optional
145 # https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206
163 method arg1, # bug#15594
173 it "is a method call with block" do |asd|
181 and_this_one(has) { |block, parameters|
196 # Examples below still fail with `ruby-use-smie' on:
198 foo = [1, 2, 3].map do |i|