aboutsummaryrefslogtreecommitdiff
path: root/files.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-14 15:42:48 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-14 15:43:24 -0800
commitc1c32688a4afc43f6addb99b8b5fa878944a70e3 (patch)
treec886f21b5b08a9053aa74fcba4b241dae5ede76d /files.lua
parent2309b696fc34b24f05f6658b94f9105ca8ee76e4 (diff)
Overhaul in progress, mostly working. Moved all the nomsu packages into
lib/, including core/*. Changes to how nomsu environments and importing work.
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