- 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
function visualizer.flush_line(str, nested)
local state, instr, inesc, word = 0, false, false, nil
buffers.currentcolors = colors
--[[
local identifier = nil
for c in string.string.utfcharacters(str) do
@ -118,8 +121,7 @@ function visualizer.flush_line(str, nested)
--flush_pas_word(identifier)
identifier = nil
]]
local state, instr, inesc, word = 0, false, false, nil
buffers.currentcolors = colors
local code, comment = string.match(str,"^(.-)%-%-%[%[(.*)$")
if comment then
-- process the code and then flush the comment