mirror of https://github.com/odrling/Aegisub
More debug trace prints in kara-templater, especially for debugging code lines.
Originally committed to SVN as r1649.
This commit is contained in:
parent
0edd8bece1
commit
afe0996608
|
@ -81,15 +81,19 @@ function parse_code(meta, styles, line, templates, mods)
|
||||||
rest = t
|
rest = t
|
||||||
m = m:lower()
|
m = m:lower()
|
||||||
if m == "once" then
|
if m == "once" then
|
||||||
|
aegisub.debug.out(5, "Found run-once code line: %s\n", line.text)
|
||||||
table.insert(templates.once, template)
|
table.insert(templates.once, template)
|
||||||
inserted = true
|
inserted = true
|
||||||
elseif m == "line" then
|
elseif m == "line" then
|
||||||
|
aegisub.debug.out(5, "Found per-line code line: %s\n", line.text)
|
||||||
table.insert(templates.line, template)
|
table.insert(templates.line, template)
|
||||||
inserted = true
|
inserted = true
|
||||||
elseif m == "syl" then
|
elseif m == "syl" then
|
||||||
|
aegisub.debug.out(5, "Found per-syl code line: %s\n", line.text)
|
||||||
table.insert(templates.syl, template)
|
table.insert(templates.syl, template)
|
||||||
inserted = true
|
inserted = true
|
||||||
elseif m == "furi" then
|
elseif m == "furi" then
|
||||||
|
aegisub.debug.out(5, "Found per-syl code line: %s\n", line.text)
|
||||||
table.insert(templates.furi, template)
|
table.insert(templates.furi, template)
|
||||||
inserted = true
|
inserted = true
|
||||||
elseif m == "all" then
|
elseif m == "all" then
|
||||||
|
@ -111,6 +115,7 @@ function parse_code(meta, styles, line, templates, mods)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not inserted then
|
if not inserted then
|
||||||
|
aegisub.debug.out(5, "Found implicit run-once code line: %s\n", line.text)
|
||||||
table.insert(templates.once, template)
|
table.insert(templates.once, template)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue