unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
blob 9f1fb0edd8024513c3de79cc3e96245806941106 544 bytes (raw)
name: test/lisp/progmodes/ruby-mode-resources/ruby-indent-simplified.rb 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 
4 +
  5 +
  6 +
  7

foo = obj.bar { |m| tee(m) } +
  obj.qux { |m| hum(m) }

foo.
  bar
  .baz

qux = foo.fee ?
  bar :
  tee

foo2 =
  subject.
  update(
    2
  )

m1 = foo
  .asdasd
  .proc do |**args|
    p(**args)
  end

m2 = foo
  .asdasd
  .proc { |**args|
    p(**args)
  }

bar.foo do
  bar
end

bar.foo(tee) do
  bar
end

bar.foo(tee) {
  bar
}

# Endless methods.
class Bar
  def foo(abc) = bar +
    baz
end

x.foo do
  foo
end.bar do
  bar
end

# Local Variables:
# ruby-method-params-indent: t
# ruby-indent-simplified: t
# End:

debug log:

solving 9f1fb0edd80 ...
found 9f1fb0edd80 in https://yhetil.org/emacs-bugs/60e207e0-7378-ad9f-3ef0-99df1c139939@yandex.ru/

applying [1/1] https://yhetil.org/emacs-bugs/60e207e0-7378-ad9f-3ef0-99df1c139939@yandex.ru/
diff --git a/test/lisp/progmodes/ruby-mode-resources/ruby-indent-simplified.rb b/test/lisp/progmodes/ruby-mode-resources/ruby-indent-simplified.rb
new file mode 100644
index 00000000000..9f1fb0edd80

Checking patch test/lisp/progmodes/ruby-mode-resources/ruby-indent-simplified.rb...
Applied patch test/lisp/progmodes/ruby-mode-resources/ruby-indent-simplified.rb cleanly.

index at:
100644 9f1fb0edd8024513c3de79cc3e96245806941106	test/lisp/progmodes/ruby-mode-resources/ruby-indent-simplified.rb

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).