mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tree-Sitter grammars are not supported
|
||||||
|
if strings.HasPrefix(filepath.Base(path), "tree-sitter-") {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
dir := filepath.Dir(path)
|
dir := filepath.Dir(path)
|
||||||
ext := filepath.Ext(path)
|
ext := filepath.Ext(path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user