- Code clean-up
This commit is contained in:
parent
19107ca30a
commit
b756c08f2e
10
pret-pas.lua
10
pret-pas.lua
|
@ -71,15 +71,13 @@ local function flush_pas_word(word)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local incomment, inlongstring = false, false
|
local incomment, inlongstring, incompdirec, inasm = false, false, false, false
|
||||||
local incompdirec, inasm = false, false
|
|
||||||
|
|
||||||
function visualizer.reset()
|
function visualizer.reset()
|
||||||
incomment, inlongstring = false, false
|
incomment, inlongstring, incompdirec, inasm = false, false, false, false
|
||||||
incompdirec, inasm = false, false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function written(state, c, i)
|
--[[local function written(state, c, i)
|
||||||
if c == " " then
|
if c == " " then
|
||||||
state = buffers.finishstate(state)
|
state = buffers.finishstate(state)
|
||||||
tex.sprint(tex.ctxcatcodes,"\\obs")
|
tex.sprint(tex.ctxcatcodes,"\\obs")
|
||||||
|
@ -93,7 +91,7 @@ local function written(state, c, i)
|
||||||
tex.write(c)
|
tex.write(c)
|
||||||
end
|
end
|
||||||
return state, 0
|
return state, 0
|
||||||
end
|
end]]
|
||||||
|
|
||||||
function visualizer.flush_line(str, nested)
|
function visualizer.flush_line(str, nested)
|
||||||
local state, instr, inesc, word = 0, false, false, nil
|
local state, instr, inesc, word = 0, false, false, nil
|
||||||
|
|
Loading…
Reference in New Issue