[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60651: 30.0.50; tree-sitter: `ts_node_is_named` is missing.
From: |
Mickey Petersen |
Subject: |
bug#60651: 30.0.50; tree-sitter: `ts_node_is_named` is missing. |
Date: |
Mon, 09 Jan 2023 09:02:13 +0000 |
User-agent: |
mu4e @VERSION@; emacs 30.0.50 |
Yuan Fu <casouri@gmail.com> writes:
> Mickey Petersen <mickey@masteringemacs.org> writes:
>
>> The tree-sitter C library function `ts_node_is_named' is not exposed
>> to Emacs from what I can see:
>>
>> https://tree-sitter.github.io/tree-sitter/using-parsers#named-vs-anonymous-nodes
>>
>> Thanks.
>
> You can use treesit-node-check. In general, if there is a C function
> that you want to use, you can check the manual for a correspondence
> listing. It’s in "Tree-sitter C API".
>
Ah, right. I did not know you'd rolled it into one handy function. Thanks,
Yuan! Issue closed :)
> Yuan