<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test/lisp/progmodes/ruby-mode-resources/ruby.rb, branch scratch/track-changes</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>ruby-syntax-methods-before-regexp: Drop this whitelist</title>
<updated>2023-12-16T02:58:35+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-12-16T02:57:44+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=746507dc3b9f555ff6e8e6282ff03ac211752325'/>
<id>746507dc3b9f555ff6e8e6282ff03ac211752325</id>
<content type='text'>
* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re):
Match only based on keywords and operators.
(ruby-syntax-methods-before-regexp): Delete.
(ruby-syntax-propertize): Use the new heuristic based on spaces
instead of checking for method names before (bug#67569).

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-regexp-not-division-when-only-space-before):
Use non-whitelisted method name.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb:
Adjust two examples.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re):
Match only based on keywords and operators.
(ruby-syntax-methods-before-regexp): Delete.
(ruby-syntax-propertize): Use the new heuristic based on spaces
instead of checking for method names before (bug#67569).

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-regexp-not-division-when-only-space-before):
Use non-whitelisted method name.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb:
Adjust two examples.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-mode: Fix method call indentation in rhs of multiple assignment</title>
<updated>2023-02-28T21:01:04+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-02-28T21:00:42+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=48a0804d10d02c2aa94664e0db8315239950225f'/>
<id>48a0804d10d02c2aa94664e0db8315239950225f</id>
<content type='text'>
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Special-case
assignment that follows a comma-separated list (bug#61871).

* test/lisp/progmodes/ruby-mode-resources/ruby.rb: Add case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Special-case
assignment that follows a comma-separated list (bug#61871).

* test/lisp/progmodes/ruby-mode-resources/ruby.rb: Add case.
</pre>
</div>
</content>
</entry>
<entry>
<title>; ruby.rb: Fix pattern matching syntax and extend the example</title>
<updated>2023-01-08T22:57:36+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-08T22:57:36+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=20f36c8f6f98478dd86ddfe93da2803de2518ea2'/>
<id>20f36c8f6f98478dd86ddfe93da2803de2518ea2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add new options for Ruby code indentation</title>
<updated>2022-12-30T22:00:21+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2022-12-30T21:58:26+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=8675f4136c7da7356e5578cf1eabda2f37a597e5'/>
<id>8675f4136c7da7356e5578cf1eabda2f37a597e5</id>
<content type='text'>
* lisp/progmodes/ruby-mode.el (ruby-block-indent)
(ruby-after-operator-indent, ruby-method-call-indent)
(ruby-parenless-call-arguments-indent): New options (bug#60186).
(ruby-smie-grammar): Specify associativity for "?".
(ruby-smie--indent-to-stmt): Add optional argument.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb: New cases.

* test/lisp/progmodes/ruby-mode-resources/ruby-method-call-indent.rb:
* test/lisp/progmodes/ruby-mode-resources/ruby-block-indent.rb:
* test/lisp/progmodes/ruby-mode-resources/ruby-after-operator-indent.rb:
* test/lisp/progmodes/ruby-mode-resources/
ruby-parenless-call-arguments-indent.rb: New files.

* test/lisp/progmodes/ruby-mode-tests.el: Add indentation tests for new files.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-mode.el (ruby-block-indent)
(ruby-after-operator-indent, ruby-method-call-indent)
(ruby-parenless-call-arguments-indent): New options (bug#60186).
(ruby-smie-grammar): Specify associativity for "?".
(ruby-smie--indent-to-stmt): Add optional argument.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb: New cases.

* test/lisp/progmodes/ruby-mode-resources/ruby-method-call-indent.rb:
* test/lisp/progmodes/ruby-mode-resources/ruby-block-indent.rb:
* test/lisp/progmodes/ruby-mode-resources/ruby-after-operator-indent.rb:
* test/lisp/progmodes/ruby-mode-resources/
ruby-parenless-call-arguments-indent.rb: New files.

* test/lisp/progmodes/ruby-mode-tests.el: Add indentation tests for new files.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-method-params-indent: New user option</title>
<updated>2022-12-19T19:06:07+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2022-12-19T19:01:27+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=2b1fdbffcb595bcd72fa9aa3db674c6985042bcb'/>
<id>2b1fdbffcb595bcd72fa9aa3db674c6985042bcb</id>
<content type='text'>
* lisp/progmodes/ruby-mode.el (ruby-method-params-indent):
New option (bug#60110).

(ruby-smie-rules): Use it.

* etc/NEWS: Mention it.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb:
Ensure the var's value is default.

* test/lisp/progmodes/ruby-mode-resources/ruby-method-params-indent.rb:
New file.

* test/lisp/progmodes/ruby-mode-tests.el (ruby-deftest-indent):
New macro, use it to run the indentation test using the new file.
Disable the :expensive-test tag, because neither runs for "longer
than some few seconds", both take significantly below 1s.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-mode.el (ruby-method-params-indent):
New option (bug#60110).

(ruby-smie-rules): Use it.

* etc/NEWS: Mention it.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb:
Ensure the var's value is default.

* test/lisp/progmodes/ruby-mode-resources/ruby-method-params-indent.rb:
New file.

* test/lisp/progmodes/ruby-mode-tests.el (ruby-deftest-indent):
New macro, use it to run the indentation test using the new file.
Disable the :expensive-test tag, because neither runs for "longer
than some few seconds", both take significantly below 1s.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-mode: Support endless singleton method definitions too</title>
<updated>2022-12-19T00:22:53+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2022-12-19T00:21:51+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=9a751e0a38bb53c269efa034d089aaab821c2662'/>
<id>9a751e0a38bb53c269efa034d089aaab821c2662</id>
<content type='text'>
* lisp/progmodes/ruby-mode.el (ruby-endless-method-head-re):
Update to match not only 'self.' but 'xyz.' as well (bug#54702).

* test/lisp/progmodes/ruby-mode-resources/ruby.rb (Bar#foo=):
Update example.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-mode.el (ruby-endless-method-head-re):
Update to match not only 'self.' but 'xyz.' as well (bug#54702).

* test/lisp/progmodes/ruby-mode-resources/ruby.rb (Bar#foo=):
Update example.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-mode: Support endless methods (bug#54702)</title>
<updated>2022-12-18T12:04:17+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2022-12-18T12:01:47+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6f88de109c837496003296d2b79b0d20c7c3b283'/>
<id>6f88de109c837496003296d2b79b0d20c7c3b283</id>
<content type='text'>
* lisp/progmodes/ruby-mode.el (ruby-endless-method-head-re):
New constant.
(ruby-smie-grammar): New token.
(ruby-smie--forward-token, ruby-smie--backward-token):
Recognize it.
(ruby-smie-rules): Indentation support.
(ruby-add-log-current-method): Support here too.

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-add-log-current-method-after-endless-method): New test.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb: New examples.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-mode.el (ruby-endless-method-head-re):
New constant.
(ruby-smie-grammar): New token.
(ruby-smie--forward-token, ruby-smie--backward-token):
Recognize it.
(ruby-smie-rules): Indentation support.
(ruby-add-log-current-method): Support here too.

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-add-log-current-method-after-endless-method): New test.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb: New examples.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-mode: Recognize instance or global var as first arg in parenless call</title>
<updated>2022-12-17T01:31:11+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2022-12-17T01:30:52+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=1c0b90e5f7d74f5814da5c242213842be9f67a05'/>
<id>1c0b90e5f7d74f5814da5c242213842be9f67a05</id>
<content type='text'>
* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p):
Recognize instance or global var as first arg in parenless call.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb: Add example.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p):
Recognize instance or global var as first arg in parenless call.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb: Add example.
</pre>
</div>
</content>
</entry>
<entry>
<title>; Prefer HTTPS to HTTP in many URLs</title>
<updated>2022-10-15T11:06:45+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2022-10-15T09:17:51+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=3187225416c66061b67e89092addc15cad2202b9'/>
<id>3187225416c66061b67e89092addc15cad2202b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Ruby indentation with double splat as first block param</title>
<updated>2022-04-26T02:36:35+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2022-04-26T02:36:35+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=39646c822bf9a3fb1ccdca0a7a5d192e607c03c3'/>
<id>39646c822bf9a3fb1ccdca0a7a5d192e607c03c3</id>
<content type='text'>
* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
(ruby-smie--backward-token): Tokenize "**" separately from "|".
Problem reported at https://github.com/dgutov/robe/issues/136.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
(ruby-smie--backward-token): Tokenize "**" separately from "|".
Problem reported at https://github.com/dgutov/robe/issues/136.
</pre>
</div>
</content>
</entry>
</feed>
