diff --git a/tl.lua b/tl.lua index 13b1b22f..417418f9 100644 --- a/tl.lua +++ b/tl.lua @@ -2345,7 +2345,6 @@ end - do @@ -6947,10 +6946,6 @@ 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 @@ -13404,16 +13399,11 @@ end local function lang_heuristic(filename, input) if filename then local pattern = "(.*)%.([a-z]+)$" - local front, extension = filename:match(pattern) + local _, extension = filename:match(pattern) extension = extension and extension:lower() if extension == "tl" then - local _, subextension = front:match(pattern) - if (subextension == "lax") then - return "lax-tl" - else - return "tl" - end + return "tl" elseif extension == "lua" then return "lua" end diff --git a/tl.tl b/tl.tl index eea87716..56b99745 100644 --- a/tl.tl +++ b/tl.tl @@ -2343,7 +2343,6 @@ end local enum ParseLang "lua" "tl" - "lax-tl" end do ----------------------------------------------------------------------------- @@ -6947,10 +6946,6 @@ 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 @@ -13404,16 +13399,11 @@ end local function lang_heuristic(filename?: string, input?: string): ParseLang if filename then local pattern = "(.*)%.([a-z]+)$" - local front, extension = filename:match(pattern) + local _, extension = filename:match(pattern) extension = extension and extension:lower() if extension == "tl" then - local _, subextension = front:match(pattern) - if (subextension == "lax") then - return "lax-tl" - else - return "tl" - end + return "tl" elseif extension == "lua" then return "lua" end