From 2cb2ea51e40dfc9634c486e595334c63479fc813 Mon Sep 17 00:00:00 2001 From: JR-Mitchell <8377714+JR-Mitchell@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:10:11 +0000 Subject: [PATCH] feat(lax): updates tl.search_module to support .lax.tl files --- tl.lua | 4 ++++ tl.tl | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tl.lua b/tl.lua index e8eb2ea8..13b1b22f 100644 --- a/tl.lua +++ b/tl.lua @@ -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 diff --git a/tl.tl b/tl.tl index d9a4f11e..eea87716 100644 --- a/tl.tl +++ b/tl.tl @@ -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