- Moved common code parts

This commit is contained in:
Stefan Müller 2010-09-29 19:43:27 +02:00
parent daadbb75f1
commit d310f804da
1 changed files with 4 additions and 2 deletions

View File

@ -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