GNU bug report logs - #60651
30.0.50; tree-sitter: `ts_node_is_named` is missing.

Previous Next

Package: emacs;

Reported by: Mickey Petersen <mickey <at> masteringemacs.org>

Date: Sun, 8 Jan 2023 10:40:02 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 29.1

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: Mickey Petersen <mickey <at> masteringemacs.org>
Cc: 60651 <at> debbugs.gnu.org
Subject: bug#60651: 30.0.50; tree-sitter: `ts_node_is_named` is missing.
Date: Sun, 8 Jan 2023 19:24:27 -0800
Mickey Petersen <mickey <at> 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".

Yuan




This bug report was last modified 2 years and 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.