summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luatexbase-loader.dtx11
1 files changed, 8 insertions, 3 deletions
diff --git a/luatexbase-loader.dtx b/luatexbase-loader.dtx
index cfbe600..8ce3deb 100644
--- a/luatexbase-loader.dtx
+++ b/luatexbase-loader.dtx
@@ -297,11 +297,16 @@ module('luatexbase', package.seeall)
%
% Emulate (approximatively) kpse's lua format search.
%
+% |lua_search_suffixes| is taken verbatim from Kpathsea's source
+% (\file{tex-file.c}, constant |LUA_SUFFIXES|),\footnote{Unchanged since
+% 2007-07-06, last checked 2010-05-10.} except for the addition of the
+% empty string at the beginning (since this is what kpse does: first try
+% without adding a suffix).
+%
% \begin{macrocode}
local lua_search_suffixes = {
- ".luc", ".lua", "", ".luctex", ".texluc",
- ".luatex", ".texlua",
-}
+ "", ".luc", ".luctex", ".texluc", ".lua", ".luatex", ".texlua",
+ }
local lua_valid_suffixes = {
luc = true,
lua = true,