Minor fixes/tidying.
This commit is contained in:
parent
13923c9d26
commit
603c5b1245
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 <-
|
||||
|
@ -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? |} !.
|
||||
|
Loading…
Reference in New Issue
Block a user