[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: To the maintainers...
From: |
Yuan Fu |
Subject: |
Re: To the maintainers... |
Date: |
Sun, 11 Dec 2022 15:07:33 -0800 |
> On Dec 10, 2022, at 10:19 AM, Perry Smith <pedz@easesoftware.com> wrote:
>
> treesit.el has this comment:
>
> ;; TODO: Document if genuinely useful.
> (cons 'n-p-gp
> ...
>
> I found it useful:
>
> ((n-p-gp "}" "hash" "assignment") grand-parent 0)
> ((n-p-gp "pair" "hash" "assignment") grand-parent
> ruby-ts-mode-indent-offset)
>
> ((n-p-gp "]" "array" "assignment") grand-parent 0)
> ((n-p-gp ".*" "array" "assignment") grand-parent
> ruby-ts-mode-indent-offset)
>
> Produces:
>
> array = [
> 9.9,
> 10,
> 11,
> ]
>
> new_hash = {
> frog: 12,
> daft: 92,
> egg: 99
> }
>
Sure, I’ll document it. Thanks :-)
Yuan