compiler: Do not load TreeSitter grammars (#4013)

This commit is contained in:
Vicent Martí
2018-01-29 18:14:14 +01:00
committed by GitHub
parent a7f835a653
commit f7835f7119

View File

@@ -108,6 +108,11 @@ func isValidGrammar(path string, info os.FileInfo) bool {
return false
}
// Tree-Sitter grammars are not supported
if strings.HasPrefix(filepath.Base(path), "tree-sitter-") {
return false
}
dir := filepath.Dir(path)
ext := filepath.Ext(path)