Compare commits

...

1 Commits

Author SHA1 Message Date
Vicent Marti
e1b76fdaae compiler: Do not load TreeSitter grammars 2018-01-29 16:41:42 +01:00

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)