aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files.lua1
-rw-r--r--files.moon1
-rw-r--r--nomsu.lua2
-rwxr-xr-xnomsu.moon2
4 files changed, 2 insertions, 4 deletions
diff --git a/files.lua b/files.lua
index eaea883..c04f703 100644
--- a/files.lua
+++ b/files.lua
@@ -226,7 +226,6 @@ Files.get_line_starts = function(str)
_LINE_STARTS[str] = line_starts
return line_starts
end
-local log = { }
Files.get_line_number = function(str, pos)
local line_starts = Files.get_line_starts(str)
local lo, hi = 1, #line_starts
diff --git a/files.moon b/files.moon
index dc3a8bd..becc3fb 100644
--- a/files.moon
+++ b/files.moon
@@ -131,7 +131,6 @@ Files.get_line_starts = (str)->
_LINE_STARTS[str] = line_starts
return line_starts
-log = {}
Files.get_line_number = (str, pos)->
line_starts = Files.get_line_starts(str)
-- Binary search for line number of position
diff --git a/nomsu.lua b/nomsu.lua
index 8500fe1..24ca589 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -97,7 +97,7 @@ if not arg or debug.getinfo(2).func == require then
return NomsuCompiler
end
local file_queue = { }
-local sep = "\0"
+local sep = "\3"
local parser = re.compile([[ args <- {| (flag %sep)* (({~ file ~} -> add_file) {:primary_file: '' -> true :} %sep)?
{:nomsu_args: {| ({(!%sep .)*} %sep)* |} :} %sep? |} !.
flag <-
diff --git a/nomsu.moon b/nomsu.moon
index eda957f..7a8ff34 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -55,7 +55,7 @@ if not arg or debug.getinfo(2).func == require
return NomsuCompiler
file_queue = {}
-sep = "\0"
+sep = "\3"
parser = re.compile([[
args <- {| (flag %sep)* (({~ file ~} -> add_file) {:primary_file: '' -> true :} %sep)?
{:nomsu_args: {| ({(!%sep .)*} %sep)* |} :} %sep? |} !.