mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
recompile
This commit is contained in:
parent
0ac82e3af5
commit
df7b10335d
@ -82,7 +82,8 @@ do
|
||||
process_line = function(self, _, line_no)
|
||||
local debug_data = debug.getinfo(2, "S")
|
||||
local source = debug_data.source
|
||||
self.line_counts[source][line_no] = self.line_counts[source][line_no] + 1
|
||||
local _update_0, _update_1 = source, line_no
|
||||
self.line_counts[_update_0][_update_1] = self.line_counts[_update_0][_update_1] + 1
|
||||
end,
|
||||
format_results = function(self)
|
||||
local line_table = require("moonscript.line_tables")
|
||||
@ -103,7 +104,8 @@ do
|
||||
_continue_1 = true
|
||||
break
|
||||
end
|
||||
positions[file][position] = positions[file][position] + count
|
||||
local _update_0, _update_1 = file, position
|
||||
positions[_update_0][_update_1] = positions[_update_0][_update_1] + count
|
||||
_continue_1 = true
|
||||
until true
|
||||
if not _continue_1 then
|
||||
|
@ -438,7 +438,8 @@ do
|
||||
self.next:render(buffer)
|
||||
else
|
||||
if #self._lines == 0 and "string" == type(buffer[#buffer]) then
|
||||
buffer[#buffer] = buffer[#buffer] .. (" " .. (unpack(Lines():add(self.footer))))
|
||||
local _update_0 = #buffer
|
||||
buffer[_update_0] = buffer[_update_0] .. (" " .. (unpack(Lines():add(self.footer))))
|
||||
else
|
||||
buffer:add(self._lines)
|
||||
buffer:add(self.footer)
|
||||
|
@ -50,7 +50,8 @@ show_line_position = function(str, pos, context)
|
||||
{ }
|
||||
}
|
||||
for c in str:gmatch(".") do
|
||||
lines[#lines] = lines[#lines] or { }
|
||||
local _update_0 = #lines
|
||||
lines[_update_0] = lines[_update_0] or { }
|
||||
table.insert(lines[#lines], c)
|
||||
if c == "\n" then
|
||||
lines[#lines + 1] = { }
|
||||
|
Loading…
Reference in New Issue
Block a user