[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Are variations such as these desired?
From: |
Perry Smith |
Subject: |
Re: Are variations such as these desired? |
Date: |
Tue, 13 Dec 2022 08:50:34 -0600 |
> On Dec 13, 2022, at 08:36, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> The two rules could be conditionally added to the rest of the rules
>> via a customizable boolean variable such as
>> ruby-ts-mode--right-justify-arrays (for example).
>
> I would welcome addition of some kind of "ts-align" functionality which
> uses the tree-sitter info to align code elements.
>
> I've had it as a todo for SMIE but never got around to it.
>
> It should be possible to make it work well even in the absence of any
> extra info provided by the major mode, AFAICT.
Ahh!!! I think that might be what I’ve been mentally groping for.
So, your idea is like “align" except instead of using regular expressions, it
would use Tree Sitter queries — or similar such concepts.
Am I on the right track?
signature.asc
Description: Message signed with OpenPGP