2 unstable releases
|0.1.0||Jan 17, 2023|
|0.0.1||Jan 17, 2023|
#145 in Text editors
Tree sitter grammar for slint targeted at neovim
This is still experimental, is missing a few features and is kind of bloated. Issues and pull requests are very welcome.
Without Tree Sitter
With Tree Sitter
Make sure you have
nvim-treesitter installed and configured. Instructions are
Just for fun
To show off the highlighting and the language features here is this picture just for fun
This crate provides slint 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 = ""; let mut parser = tree_sitter::Parser::new(); parser.set_language(tree_sitter_slint::language()).expect("Error loading slint grammar"); let tree = parser.parse(code, None).unwrap();