diff --git a/config.yml b/config.yml index 3446e277bc5..e0d1fb5399c 100644 --- a/config.yml +++ b/config.yml @@ -777,10 +777,10 @@ nodes: comment: | Represents the use of a case statement. - case true - ^^^^^^^^^ - when false - end + case true + when false + end + ^^^^^^^^^^ - name: ClassNode fields: - name: locals @@ -818,7 +818,7 @@ nodes: Represents the use of the `&&=` operator for assignment to a class variable. @@target &&= value - ^^^^^^^^^^^^^^^^ + ^^^^^^^^^^^^^^^^^^ - name: ClassVariableOperatorWriteNode fields: - name: name @@ -1183,13 +1183,13 @@ nodes: Represents a find pattern in pattern matching. foo in *bar, baz, *qux - ^^^^^^^^^^^^^^^^^^^^^^ + ^^^^^^^^^^^^^^^ foo in [*bar, baz, *qux] - ^^^^^^^^^^^^^^^^^^^^^^^^ + ^^^^^^^^^^^^^^^^^ foo in Foo(*bar, baz, *qux) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ^^^^^^^^^^^^^^^^^^^^ - name: FlipFlopNode fields: - name: left @@ -1240,7 +1240,7 @@ nodes: def foo(...) bar(...) - ^^^^^^^^ + ^^^ end - name: ForwardingParameterNode comment: | @@ -2237,8 +2237,8 @@ nodes: begin rescue Foo, *splat, Bar => ex - ^^^^^^ foo + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ end `Foo, *splat, Bar` are in the `exceptions` field. diff --git a/rakelib/rdoc.rake b/rakelib/rdoc.rake index b4a60edf9f3..3c704ba8dde 100644 --- a/rakelib/rdoc.rake +++ b/rakelib/rdoc.rake @@ -6,6 +6,7 @@ RDoc::Task.new do |rdoc| rdoc.main = "README.md" rdoc.markup = "markdown" rdoc.rdoc_dir = "doc" + rdoc.options << "--all" rdoc.rdoc_files.include( "docs/*.md", diff --git a/templates/lib/prism/serialize.rb.erb b/templates/lib/prism/serialize.rb.erb index 4ee474671a4..da507709e33 100644 --- a/templates/lib/prism/serialize.rb.erb +++ b/templates/lib/prism/serialize.rb.erb @@ -4,7 +4,7 @@ require "stringio" if String.instance_method(:unpack1).parameters.none? { |_, name| name == :offset } String.prepend( Module.new { - def unpack1(format, offset: 0) + def unpack1(format, offset: 0) # :nodoc: offset == 0 ? super(format) : self[offset..].unpack1(format) end }