2 unstable releases

0.7.0 May 14, 2025
0.6.1 Jan 28, 2025

#387 in Text editors

Download history 69/week @ 2025-01-29 6/week @ 2025-02-05 1/week @ 2025-02-12 1/week @ 2025-04-16 6/week @ 2025-05-07 143/week @ 2025-05-14

149 downloads per month

MIT license

65KB
2K SLoC

C 2K SLoC // 0.0% comments JavaScript 75 SLoC // 0.3% comments Rust 30 SLoC // 0.2% comments

tree-sitter-godot-resource

Godot resource grammar for tree-sitter.

Parses tscn and tres files.


lib.rs:

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

Typically, you will use the [LANGUAGE][] constant 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();
let language = tree_sitter_godot_resource::LANGUAGE;
parser
    .set_language(&language.into())
    .expect("Error loading GodotResource parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Dependencies

~4–280KB