<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test/lisp/progmodes/ruby-mode-resources, branch scratch/pkg</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-smie-rules: Fix misindentation of a method call after assignment</title>
<updated>2023-02-27T00:06:20+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-02-27T00:05:56+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=267fc6d00c4db6f20da3c2d63e48a71ab70505d3'/>
<id>267fc6d00c4db6f20da3c2d63e48a71ab70505d3</id>
<content type='text'>
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Fix indentation of a
method call after assignment with ruby-after-operator-indent=nil
(bug#61822).

* test/lisp/progmodes/ruby-mode-resources/ruby-after-operator-indent.rb:
Add corresponding example.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Fix indentation of a
method call after assignment with ruby-after-operator-indent=nil
(bug#61822).

* test/lisp/progmodes/ruby-mode-resources/ruby-after-operator-indent.rb:
Add corresponding example.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-ts-mode: Fix two additional cases with ruby-method-call-indent=nil</title>
<updated>2023-01-22T02:55:13+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-22T02:55:13+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=e74ba72a6a34221abf47145ecf0ec4fc8cda2555'/>
<id>e74ba72a6a34221abf47145ecf0ec4fc8cda2555</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Fix two additional cases with ruby-method-call-indent=nil.

* test/lisp/progmodes/ruby-mode-resources/ruby-method-call-indent.rb:
Add examples.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Fix two additional cases with ruby-method-call-indent=nil.

* test/lisp/progmodes/ruby-mode-resources/ruby-method-call-indent.rb:
Add examples.
</pre>
</div>
</content>
</entry>
<entry>
<title>(ruby-ts--indent-rules): Add a rule for continuation of a hash pair</title>
<updated>2023-01-19T03:27:43+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-19T03:26:03+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=819719330ad9d1c2836079ef3006c5790fa7f93f'/>
<id>819719330ad9d1c2836079ef3006c5790fa7f93f</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Add a rule for continuation of a hash pair.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: Add examples.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Add a rule for continuation of a hash pair.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: Add examples.
</pre>
</div>
</content>
</entry>
<entry>
<title>(ruby-ts--parent-call-or-bol): Handle more cases with nested literals</title>
<updated>2023-01-19T03:27:43+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-19T03:10:05+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=94b9cbf96fbb61b53242d205ff559deee36279c6'/>
<id>94b9cbf96fbb61b53242d205ff559deee36279c6</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--parent-call-or-bol):
Handle more cases with nested literals.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: Add examples.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--parent-call-or-bol):
Handle more cases with nested literals.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: Add examples.
</pre>
</div>
</content>
</entry>
<entry>
<title>(ruby-ts--statement-container-regexp): Remove "parenthesized_statements"</title>
<updated>2023-01-19T03:27:43+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-19T01:51:51+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=ba33b83ce4b27b353441a174faaba024d59e4614'/>
<id>ba33b83ce4b27b353441a174faaba024d59e4614</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el
(ruby-ts--statement-container-regexp): Remove
"parenthesized_statements", it's not really a statement container,
not one we'd use for indentation alignment anyway.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: Add examples.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el
(ruby-ts--statement-container-regexp): Remove
"parenthesized_statements", it's not really a statement container,
not one we'd use for indentation alignment anyway.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: Add examples.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-ts-mode: Obey the option ruby-method-call-indent</title>
<updated>2023-01-18T01:27:37+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-18T01:21:32+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=343b9b3dfe370a7e65d499b499621f87e722ea71'/>
<id>343b9b3dfe370a7e65d499b499621f87e722ea71</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el
(ruby-ts--method-call-indent-p): New function.
(ruby-ts--indent-rules): Use it.

* test/lisp/progmodes/ruby-ts-mode-tests.el:
Run indent test for ruby-method-call-indent.rb.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb:
Add explicit value for ruby-method-call-indent.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el
(ruby-ts--method-call-indent-p): New function.
(ruby-ts--indent-rules): Use it.

* test/lisp/progmodes/ruby-ts-mode-tests.el:
Run indent test for ruby-method-call-indent.rb.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb:
Add explicit value for ruby-method-call-indent.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-ts-mode: Obey the option ruby-after-operator-indent</title>
<updated>2023-01-18T01:27:37+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-18T00:55:09+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=045404d1aac1a9bd4ad2a3af8db577d7f05b9d03'/>
<id>045404d1aac1a9bd4ad2a3af8db577d7f05b9d03</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el
(ruby-ts--after-op-indent-p): New function.
(ruby-ts--indent-rules): Use it.

* test/lisp/progmodes/ruby-ts-mode-tests.el:
Run indent test for ruby-after-operator-indent.rb.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb:
Make sure indentation vars are at their default values.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el
(ruby-ts--after-op-indent-p): New function.
(ruby-ts--indent-rules): Use it.

* test/lisp/progmodes/ruby-ts-mode-tests.el:
Run indent test for ruby-after-operator-indent.rb.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb:
Make sure indentation vars are at their default values.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-ts-mode: Fix indent after operator or conditional</title>
<updated>2023-01-18T01:27:37+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-18T00:40:00+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=300ca6ac37250711b7d6484e0a870bf37e9e00cb'/>
<id>300ca6ac37250711b7d6484e0a870bf37e9e00cb</id>
<content type='text'>
Make it match ruby-mode's indentation behavior.

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--binary-indent-anchor):
New function.
(ruby-ts--indent-rules): Use it instead of a composite matcher.
Add a rule for 'conditional'.
(ruby-ts--assignment-ancestor, ruby-ts--is-in-condition)
(ruby-ts--endless-method): Remove.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb:
Add examples.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make it match ruby-mode's indentation behavior.

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--binary-indent-anchor):
New function.
(ruby-ts--indent-rules): Use it instead of a composite matcher.
Add a rule for 'conditional'.
(ruby-ts--assignment-ancestor, ruby-ts--is-in-condition)
(ruby-ts--endless-method): Remove.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb:
Add examples.
</pre>
</div>
</content>
</entry>
</feed>
