CLI: Determine language symbol from grammar, not package.json

Fixes #272
Fixes #277
This commit is contained in:
Max Brunsfeld 2019-02-13 19:30:59 -08:00
parent 2b685658db
commit 57c528b6c5
3 changed files with 29 additions and 28 deletions

View file

@ -16,7 +16,7 @@ pub fn fixtures_dir<'a>() -> &'static Path {
pub fn get_language(name: &str) -> Language {
TEST_LOADER
.load_language_at_path(name, &GRAMMARS_DIR.join(name).join("src"), &HEADER_DIR)
.load_language_at_path(&GRAMMARS_DIR.join(name).join("src"), &HEADER_DIR)
.unwrap()
}