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 abctomod abc, where has all treesitter kinds