diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtxrun.lua | 2 | ||||
-rw-r--r-- | scripts/context/stubs/mswin/mtxrun.lua | 2 | ||||
-rw-r--r-- | scripts/context/stubs/unix/mtxrun | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua index d45e7e5fe..7b5348424 100644 --- a/scripts/context/lua/mtxrun.lua +++ b/scripts/context/lua/mtxrun.lua @@ -188,9 +188,11 @@ local utfgmatch = unicode and unicode.utf8.gmatch local anything = P(1) local endofstring = P(-1) +local alwaysmatched = P(true) patterns.anything = anything patterns.endofstring = endofstring +patterns.beginofstring = alwaysmatched local digit, sign = R('09'), S('+-') local cr, lf, crlf = P("\r"), P("\n"), P("\r\n") diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua index d45e7e5fe..7b5348424 100644 --- a/scripts/context/stubs/mswin/mtxrun.lua +++ b/scripts/context/stubs/mswin/mtxrun.lua @@ -188,9 +188,11 @@ local utfgmatch = unicode and unicode.utf8.gmatch local anything = P(1) local endofstring = P(-1) +local alwaysmatched = P(true) patterns.anything = anything patterns.endofstring = endofstring +patterns.beginofstring = alwaysmatched local digit, sign = R('09'), S('+-') local cr, lf, crlf = P("\r"), P("\n"), P("\r\n") diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun index d45e7e5fe..7b5348424 100644 --- a/scripts/context/stubs/unix/mtxrun +++ b/scripts/context/stubs/unix/mtxrun @@ -188,9 +188,11 @@ local utfgmatch = unicode and unicode.utf8.gmatch local anything = P(1) local endofstring = P(-1) +local alwaysmatched = P(true) patterns.anything = anything patterns.endofstring = endofstring +patterns.beginofstring = alwaysmatched local digit, sign = R('09'), S('+-') local cr, lf, crlf = P("\r"), P("\n"), P("\r\n") |