aboutsummaryrefslogtreecommitdiff
path: root/files.lua
diff options
context:
space:
mode:
Diffstat (limited to 'files.lua')
-rw-r--r--files.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/files.lua b/files.lua
index 036471f..0c8558d 100644
--- a/files.lua
+++ b/files.lua
@@ -213,12 +213,4 @@ Files.get_line = function(str, line_no)
end
return (str:sub(start, stop - 2))
end
-local get_lines = re.compile([[ lines <- {| line (%nl line)* |}
- line <- {[^%nl]*}
-]], {
- nl = lpeg.P("\r") ^ -1 * lpeg.P("\n")
-})
-Files.get_lines = function(str)
- return get_lines:match(str)
-end
return Files