mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Compare commits
1 Commits
script-fix
...
vmg/treesi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1b76fdaae |
@@ -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