Skip to content

Commit 6c752ab

Browse files
More liberally find grammars
1 parent 285a90b commit 6c752ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree_sitter/repository.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module TreeSitter
1010
@@language_paths ||= begin
1111
languages = Hash(String, Path).new
1212
Config.parser_directories.each do |dir|
13-
Dir[dir.join("*", "src", "grammar.json")].each do |grammar_path|
13+
Dir[dir.join("**", "src", "grammar.json")].each do |grammar_path|
1414
languages[$2] = Path.new($1) if grammar_path =~ %r{(.*/tree\-sitter\-([\w\-_]+))/src/grammar.json\z}
1515
end
1616
end

0 commit comments

Comments
 (0)