<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test/lisp/progmodes/ruby-ts-mode-tests.el, 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>; Add 2024 to copyright years</title>
<updated>2024-01-02T01:47:10+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2024-01-02T01:47:10+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=8e1c56ae46754dd7baedff49a464f078f0e9912d'/>
<id>8e1c56ae46754dd7baedff49a464f078f0e9912d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip ruby-ts-imenu-index test if needed</title>
<updated>2023-03-28T11:04:09+00:00</updated>
<author>
<name>Michael Albinus</name>
</author>
<published>2023-03-28T11:04:09+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=ba3ade58f3b7083b40e4f995388d6246cc81ba82'/>
<id>ba3ade58f3b7083b40e4f995388d6246cc81ba82</id>
<content type='text'>
* test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index):
Add check for treesitter.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index):
Add check for treesitter.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-ts-mode: Fix/simplify Imenu index generation</title>
<updated>2023-03-27T00:49:13+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-03-27T00:49:13+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=cbef1422fe3ba5d3327835f3952a0f42f7881716'/>
<id>cbef1422fe3ba5d3327835f3952a0f42f7881716</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--full-name): Drop '#'
from the end of resulting string when the node is not a method.
Support 'singleton_method' nodes.
(ruby-ts--imenu-helper): Simplify, to create a "flat" list of
entries, rather than a nested one.  The previous implementation
had problems (like producing a nested structure of full-qualified
names, thus creating a lot of textual repetition), seems easier to
just follow ruby-mode's example here, at least for Emacs 29's
release.

* test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index):
New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--full-name): Drop '#'
from the end of resulting string when the node is not a method.
Support 'singleton_method' nodes.
(ruby-ts--imenu-helper): Simplify, to create a "flat" list of
entries, rather than a nested one.  The previous implementation
had problems (like producing a nested structure of full-qualified
names, thus creating a lot of textual repetition), seems easier to
just follow ruby-mode's example here, at least for Emacs 29's
release.

* test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index):
New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip ruby-ts-syntax-propertize-symbol unless treesitter is available</title>
<updated>2023-03-10T10:13:42+00:00</updated>
<author>
<name>Robert Pluim</name>
</author>
<published>2023-03-10T10:13:42+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=679f528b953abaa9195381d51ecd7d66256ac294'/>
<id>679f528b953abaa9195381d51ecd7d66256ac294</id>
<content type='text'>
 *
 test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-syntax-propertize-symbol):
 Add check for treesitter.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 *
 test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-syntax-propertize-symbol):
 Add check for treesitter.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-ts-mode: Fine-tune s-p-f on symbols (bug#62086)</title>
<updated>2023-03-09T21:49:39+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-03-09T21:49:39+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=ecdfd584a52f280c250b766011867059f9242057'/>
<id>ecdfd584a52f280c250b766011867059f9242057</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--s-p-query):
Don't match ':' in symbol node text.  Or '_', I suppose.
(ruby-ts--syntax-propertize): Make sure to only put the '_' syntax
on punctuation syntax characters, and not on the whole symbol (to
e.g. have symbols like :foo? include text recognized as word).

* test/lisp/progmodes/ruby-ts-mode-tests.el
(ruby-ts-syntax-propertize-symbol): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--s-p-query):
Don't match ':' in symbol node text.  Or '_', I suppose.
(ruby-ts--syntax-propertize): Make sure to only put the '_' syntax
on punctuation syntax characters, and not on the whole symbol (to
e.g. have symbols like :foo? include text recognized as word).

* test/lisp/progmodes/ruby-ts-mode-tests.el
(ruby-ts-syntax-propertize-symbol): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-ts-mode: Fix indentation inside empty if/unless/case/def</title>
<updated>2023-02-09T02:16:15+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-02-09T02:15:41+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=a5651c0c403bb6513e235056d787611059f6d568'/>
<id>a5651c0c403bb6513e235056d787611059f6d568</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Add new rule.

* test/lisp/progmodes/ruby-ts-mode-tests.el
(ruby-ts-indent-empty-if-else): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Add new rule.

* test/lisp/progmodes/ruby-ts-mode-tests.el
(ruby-ts-indent-empty-if-else): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>(ruby-ts--indent-rules): Indent inside empty parens properly</title>
<updated>2023-01-19T17:44:10+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-19T15:31:43+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=0d3b6518e39a28774e4e70ed9bb7ef4aa009c0cf'/>
<id>0d3b6518e39a28774e4e70ed9bb7ef4aa009c0cf</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Consider the case when there are no arguments inside the call yet.

* test/lisp/progmodes/ruby-ts-mode-tests.el
(ruby-ts-indent-call-no-args): Add test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Consider the case when there are no arguments inside the call yet.

* test/lisp/progmodes/ruby-ts-mode-tests.el
(ruby-ts-indent-call-no-args): Add test.
</pre>
</div>
</content>
</entry>
<entry>
<title>ruby-ts-mode: Handle indent in parenless calls much closer to ruby-mode</title>
<updated>2023-01-19T03:27:43+00:00</updated>
<author>
<name>Dmitry Gutov</name>
</author>
<published>2023-01-19T01:38:58+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f2bedf695c15da93e8e240ad11a350a8dc8b5549'/>
<id>f2bedf695c15da93e8e240ad11a350a8dc8b5549</id>
<content type='text'>
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--parent-call-or-bol):
New function.
(ruby-ts--indent-rules): Use it for cases which need special
anchoring logic when inside a parenless method call.
Remove the ad-hoc handling of pair-hash-pair etc indentation,
which was there only for the parenless cases, apparently.
Have "No paren, ruby-parenless-call-arguments-indent is nil" case
align to the statement, if only because ruby-mode does that.

* test/lisp/progmodes/ruby-ts-mode-tests.el:
Run indent test for ruby-parenless-call-arguments-indent.rb.
</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):
New function.
(ruby-ts--indent-rules): Use it for cases which need special
anchoring logic when inside a parenless method call.
Remove the ad-hoc handling of pair-hash-pair etc indentation,
which was there only for the parenless cases, apparently.
Have "No paren, ruby-parenless-call-arguments-indent is nil" case
align to the statement, if only because ruby-mode does that.

* test/lisp/progmodes/ruby-ts-mode-tests.el:
Run indent test for ruby-parenless-call-arguments-indent.rb.
</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>
</feed>
