Skip to content

Commit

Permalink
feat(lax): updates tl.search_module to support .lax.tl files
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-Mitchell committed Dec 14, 2024
1 parent 2bba676 commit 2cb2ea5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6947,6 +6947,10 @@ tl.search_module = function(module_name, search_dtl)
if found then
return found, fd
end
found, fd, tried = search_for(module_name, ".lax.tl", path, tried)
if found then
return found, fd
end
found, fd, tried = search_for(module_name, ".lua", path, tried)
if found then
return found, fd
Expand Down
4 changes: 4 additions & 0 deletions tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -6947,6 +6947,10 @@ tl.search_module = function(module_name: string, search_dtl: boolean): string, F
if found then
return found, fd
end
found, fd, tried = search_for(module_name, ".lax.tl", path, tried)
if found then
return found, fd
end
found, fd, tried = search_for(module_name, ".lua", path, tried)
if found then
return found, fd
Expand Down

0 comments on commit 2cb2ea5

Please sign in to comment.