From c1c32688a4afc43f6addb99b8b5fa878944a70e3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 14 Jan 2019 15:42:48 -0800 Subject: Overhaul in progress, mostly working. Moved all the nomsu packages into lib/, including core/*. Changes to how nomsu environments and importing work. --- files.lua | 8 -------- 1 file changed, 8 deletions(-) (limited to 'files.lua') 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 -- cgit v1.2.3