More debug trace prints in kara-templater, especially for debugging code lines.

Originally committed to SVN as r1649.
This commit is contained in:
Niels Martin Hansen 2007-11-06 19:53:20 +00:00
parent 0edd8bece1
commit afe0996608
1 changed files with 5 additions and 0 deletions

View File

@ -81,15 +81,19 @@ function parse_code(meta, styles, line, templates, mods)
rest = t
m = m:lower()
if m == "once" then
aegisub.debug.out(5, "Found run-once code line: %s\n", line.text)
table.insert(templates.once, template)
inserted = true
elseif m == "line" then
aegisub.debug.out(5, "Found per-line code line: %s\n", line.text)
table.insert(templates.line, template)
inserted = true
elseif m == "syl" then
aegisub.debug.out(5, "Found per-syl code line: %s\n", line.text)
table.insert(templates.syl, template)
inserted = true
elseif m == "furi" then
aegisub.debug.out(5, "Found per-syl code line: %s\n", line.text)
table.insert(templates.furi, template)
inserted = true
elseif m == "all" then
@ -111,6 +115,7 @@ function parse_code(meta, styles, line, templates, mods)
end
if not inserted then
aegisub.debug.out(5, "Found implicit run-once code line: %s\n", line.text)
table.insert(templates.once, template)
end
end