#parser #incremental #vue3

tree-sitter-vue3

vue3 grammar for the tree-sitter parsing library

4 releases

0.0.4 Sep 23, 2022
0.0.3 Sep 23, 2022
0.0.2 Sep 23, 2022
0.0.1 Sep 23, 2022

#246 in #incremental

MIT license

130KB
4K SLoC

C 3.5K SLoC C++ 315 SLoC // 0.0% comments JavaScript 151 SLoC Scheme 46 SLoC Rust 33 SLoC // 0.4% comments

tree-sitter-vue3

Tree-sitter-vue3 is a fast syntax HeighLight、Automatic completion tools base on Tree-sitter for vue3(vue-next)。

⚠️ The repo is wip. The futures has not been implemented yet.

Futures Status

🚧 is wip ✅ is done

name status
HeighLight 🚧
Automatic completion 🚧
Syntax Tree 🚧

lib.rs:

This crate provides YOUR_LANGUAGE_NAME 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_vue3::language()).expect("Error loading YOUR_LANGUAGE_NAME grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~2.7–4MB
~71K SLoC