Load all fixture grammars dynamically

This way the build doesn't take forever any time a single grammar has 
been regenerated.
This commit is contained in:
Max Brunsfeld 2019-01-15 10:27:39 -08:00
parent 5c3c1dd0bd
commit a8292f4fe9
10 changed files with 119 additions and 143 deletions

View file

@ -1,6 +1,10 @@
use super::languages::rust;
use super::fixtures::get_language;
use std::thread;
use tree_sitter::{InputEdit, LogType, Parser, Point, PropertySheet};
use tree_sitter::{InputEdit, LogType, Parser, Point, PropertySheet, Language};
fn rust() -> Language {
get_language("rust")
}
#[test]
fn test_basic_parsing() {