cli: Handle multi-parser repos, content-regex property
Prompted by tree-sitter/tree-sitter-typescript#68
This commit is contained in:
parent
7005d8b9d9
commit
93f7de03e2
3 changed files with 198 additions and 97 deletions
|
|
@ -21,7 +21,7 @@ use std::{fmt, ptr, slice, str, u16};
|
|||
pub const LANGUAGE_VERSION: usize = ffi::TREE_SITTER_LANGUAGE_VERSION;
|
||||
pub const PARSER_HEADER: &'static str = include_str!("../include/tree_sitter/parser.h");
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
||||
#[repr(transparent)]
|
||||
pub struct Language(*const ffi::TSLanguage);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue