mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
compiler: Do not load TreeSitter grammars (#4013)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user