diff options
Diffstat (limited to 'nomsu_tree.moon')
| -rw-r--r-- | nomsu_tree.moon | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nomsu_tree.moon b/nomsu_tree.moon index fcef992..ff71c54 100644 --- a/nomsu_tree.moon +++ b/nomsu_tree.moon @@ -278,8 +278,9 @@ Tree "List", line, src = item.source\get_line!, item.source\get_text! error "#{line}: Cannot use #{colored.yellow src} as a list item, since it's not an expression.", 0 lua\append item_lua - newlines, last_line = tostring(item_lua)\match("^(.-)([^\n]*)$") - if #newlines > 0 + item_string = tostring(item_lua) + last_line = item_string\match("[^\n]*$") + if item_string\match("\n") line_length = #last_line else line_length += #last_line |
