1 unstable release

0.0.1 Jul 17, 2024

#272 in #incremental

MIT license

13KB
301 lines

tree-sitter-pinky

tree sitter grammar for the pinky markdown notes system


lib.rs:

This crate provides Pinky language support for the tree-sitter parsing library.

Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:

let code = r#"
"#;
let mut parser = tree_sitter::Parser::new();
parser.set_language(&tree_sitter_pinky::language()).expect("Error loading Pinky grammar");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Dependencies

~2.8–4MB
~78K SLoC