summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-grep.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-grep.lua b/scripts/context/lua/mtx-grep.lua
index 6e33d440c..3cbc1421a 100644
--- a/scripts/context/lua/mtx-grep.lua
+++ b/scripts/context/lua/mtx-grep.lua
@@ -32,7 +32,7 @@ local cr = lpeg.P("\r")
local lf = lpeg.P("\n")
local crlf = cr * lf
local newline = crlf + cr + lf
-local content = lpeg.C((1-newline)^0) * newline
+local content = lpeg.C((1-newline)^0) * newline + lpeg.C(lpeg.P(1)^1)
local write_nl = texio.write_nl