compiler: Do not load TreeSitter grammars

This commit is contained in:
Vicent Marti
2018-01-29 16:41:42 +01:00
parent a7f835a653
commit e1b76fdaae

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)