def _lua_format(lines, setting=None):
    purge()
    global _settings
    _settings = setting
    content = ''
    for line in lines:
        line += '\n'
        content += line
    content += '\n'
    content = content.replace('\t', '')
    content = content.replace('\\n', '\\\\n')
    content = content.replace('\\r', '\\\\r')
    parse_node(content)
    foreach_node()
    foreach_blank()
    foreach_string_connect()
    foreach_word()
    foreach_bracket()
    foreach_operator()
    foreach_separator()
    foreach_equal()
    tidy_indent()
def _lua_format(lines, setting=None):
    purge()
    global _settings
    _settings = setting
    content = 
    for line in lines:
        line += '\n'
        content += line
    content += '\n'
    content = content.replace('\t', )
    content = content.replace('\\n', '\\\\n')
    content = content.replace('\\r', '\\\\r')
    parse_node(content)
    foreach_node()
    foreach_blank()
    foreach_string_connect()
    foreach_word()
    foreach_bracket()
    foreach_operator()
    foreach_separator()
    foreach_equal()
    tidy_indent()