Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-syntax/src/tree_sitter.rs')
-rw-r--r--helix-syntax/src/tree_sitter.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/helix-syntax/src/tree_sitter.rs b/helix-syntax/src/tree_sitter.rs
new file mode 100644
index 00000000..d75c5b24
--- /dev/null
+++ b/helix-syntax/src/tree_sitter.rs
@@ -0,0 +1,27 @@
+mod grammar;
+mod parser;
+mod query;
+mod ropey;
+mod syntax_tree;
+mod syntax_tree_node;
+
+pub use grammar::Grammar;
+pub use parser::{Parser, ParserInputRaw};
+pub use syntax_tree::{InputEdit, SyntaxTree};
+pub use syntax_tree_node::SyntaxTreeNode;
+
+#[repr(C)]
+#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
+pub struct Point {
+ pub row: u32,
+ pub column: u32,
+}
+
+#[repr(C)]
+#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
+pub struct Range {
+ pub start_point: Point,
+ pub end_point: Point,
+ pub start_byte: u32,
+ pub end_byte: u32,
+}