cli: Handle multi-parser repos, content-regex property

Prompted by tree-sitter/tree-sitter-typescript#68
This commit is contained in:
Max Brunsfeld 2019-08-07 17:41:45 -07:00
parent 7005d8b9d9
commit 93f7de03e2
3 changed files with 198 additions and 97 deletions

View file

@ -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);