Crate treesitter_kind_collector

Crate treesitter_kind_collector 

Source
Expand description

§Auto transport node_types.json to rust mod

Min example


use treesitter_kind_collector::tree_sitter_kinds;
#[tree_sitter_kinds("asserts/node-types.json")]
struct NodeKindTypes;

fn main() {
    println!("{}", NodeKindTypes::ARGUMENT);
    println!("{:?}", NodeKindTypes::NODE_TYPES);
}

Attribute Macros§

tree_sitter_kinds
macro to tranport a struct abc to mod abc, where has all treesitter kinds