- Moved common code parts
This commit is contained in:
parent
daadbb75f1
commit
d310f804da
|
@ -96,6 +96,9 @@ local function written(state,c,i)
|
||||||
end
|
end
|
||||||
|
|
||||||
function visualizer.flush_line(str, nested)
|
function visualizer.flush_line(str, nested)
|
||||||
|
local state, instr, inesc, word = 0, false, false, nil
|
||||||
|
buffers.currentcolors = colors
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
local identifier = nil
|
local identifier = nil
|
||||||
for c in string.string.utfcharacters(str) do
|
for c in string.string.utfcharacters(str) do
|
||||||
|
@ -118,8 +121,7 @@ function visualizer.flush_line(str, nested)
|
||||||
--flush_pas_word(identifier)
|
--flush_pas_word(identifier)
|
||||||
identifier = nil
|
identifier = nil
|
||||||
]]
|
]]
|
||||||
local state, instr, inesc, word = 0, false, false, nil
|
|
||||||
buffers.currentcolors = colors
|
|
||||||
local code, comment = string.match(str,"^(.-)%-%-%[%[(.*)$")
|
local code, comment = string.match(str,"^(.-)%-%-%[%[(.*)$")
|
||||||
if comment then
|
if comment then
|
||||||
-- process the code and then flush the comment
|
-- process the code and then flush the comment
|
||||||
|
|
Loading…
Reference in New Issue