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
52 foo = [ # ruby-deep-indent-disabled
56 foo( # ruby-deep-indent-disabled
91 # Support for this syntax was removed in Ruby 1.9, so we
92 # probably don't need to handle it either.
101 # Some Cucumber code:
111 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
112 d = 4 + 5 + # no '\' needed
115 # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
126 MSG = 'Separate every 3 digits in the integer portion of a number' \
127 'with underscores(_).'
139 while a < b do # "do" is optional
149 # https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206
167 method arg1, # bug#15594
190 it "is a method call with block" do |asd|
198 and_this_one(has) { |block, parameters|
223 # http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation
228 # Examples below still fail with `ruby-use-smie' on:
230 foo = [1, 2, 3].map do |i|
234 bar.foo do # "." is parent to "do"; it shouldn't be.