tree-sitter/lib
Niranjan Hasabnis dffee22736 Adding API to get field name of a TSNode
This PR adds an API to get name of the field of TSNode's child.
It uses same set of arguments as that of ts_node_child, but returns
field name if it is found, otherwise it returns NULL.

This API is useful to implement custom printing of S-expressions such
as following:

"(binary_expression
   (binary_expression_left (identifier))
   (binary_expression_operator ("+"))
   (binary_expression_right (identifier)
)"

Currently, ts_node_string does not allow any customization for printing.
2021-05-15 00:20:18 +00:00
..
binding_rust Merge pull request #1071 from ahlinc/feat/rust-binding-additional-error-traits 2021-04-22 21:24:07 -07:00
binding_web web: 0.19.3 2021-05-13 15:14:56 -04:00
include/tree_sitter Adding API to get field name of a TSNode 2021-05-15 00:20:18 +00:00
src Adding API to get field name of a TSNode 2021-05-15 00:20:18 +00:00
.ccls rust: Change QueryCursor::captures to expose the full match 2019-10-03 12:45:58 -07:00
Cargo.toml rust: 0.19.4 2021-03-18 10:36:05 -07:00
README.md lib: remove utf8proc dependency (#436) 2019-10-14 11:18:39 -07:00

Subdirectories

  • src - C source code for the Tree-sitter library
  • include - C headers for the Tree-sitter library
  • binding_rust - Rust bindings to the Tree-sitter library
  • binding_web - JavaScript bindings to the Tree-sitter library, using WebAssembly