Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1if arg[1] == '--help' then
2 print('Usage:')
3 print(' ' .. arg[0] .. ' [-c] target source varname [source varname]...')
4 print('')
5 print('Generates C file with big uint8_t blob.')
6 print('Blob will be stored in a static const array named varname.')
7 os.exit()
…lines 8–97 unchanged (90 lines)

After

1---@diagnostic disable: no-unknown
2if arg[1] == '--help' then
3 print('Usage:')
4 print(' ' .. arg[0] .. ' [-c] target source varname [source varname]...')
5 print('')
6 print('Generates C file with big uint8_t blob.')
7 print('Blob will be stored in a static const array named varname.')
…lines 8–98 unchanged (91 lines)

Before

chunk
if_statement (+81 nodes collapsed)
comment
-- "--"
comment_content " Recognized options:"
comment
-- "--"
comment_content " -c compile Lua bytecode"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "options"
= "="
expression_list
table_constructor
{ "{"
} "}"
while_statement (+61 nodes collapsed)
function_call (+28 nodes collapsed)
variable_declaration (+23 nodes collapsed)
variable_declaration (+21 nodes collapsed)
function_call
method_index_expression
identifier "target"
: ":"
identifier "write"
arguments
( "("
string
' "'"
string_content
escape_sequence "\\n"
escape_sequence "\\n"
' "'"
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "index_items"
= "="
expression_list
table_constructor
{ "{"
} "}"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "warn_on_missing_compiler"
= "="
expression_list
true "true"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "modnames"
= "="
expression_list
table_constructor
{ "{"
} "}"
for_statement (+536 nodes collapsed)
function_call
method_index_expression
identifier "target"
: ":"
identifier "write"
arguments
( "("
string
' "'"
string_content
escape_sequence "\\n"
' "'"
) ")"
function_call
method_index_expression
identifier "target"
: ":"
identifier "write"
arguments
( "("
function_call
dot_index_expression
identifier "table"
. "."
identifier "concat"
arguments
( "("
identifier "index_items"
) ")"
) ")"
function_call
method_index_expression
identifier "target"
: ":"
identifier "write"
arguments
( "("
string
' "'"
string_content
escape_sequence "\\n"
' "'"
) ")"
function_call
method_index_expression
identifier "target"
: ":"
identifier "close"
arguments
( "("
) ")"

After

chunk
comment
-- "--"
comment_content "-@diagnostic disable: no-unknown"
if_statement (+81 nodes collapsed)
comment
-- "--"
comment_content " Recognized options:"
comment
-- "--"
comment_content " -c compile Lua bytecode"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "options"
= "="
expression_list
table_constructor
{ "{"
} "}"
while_statement (+61 nodes collapsed)
function_call (+28 nodes collapsed)
variable_declaration (+23 nodes collapsed)
variable_declaration (+21 nodes collapsed)
function_call
method_index_expression
identifier "target"
: ":"
identifier "write"
arguments
( "("
string
' "'"
string_content
escape_sequence "\\n"
escape_sequence "\\n"
' "'"
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "index_items"
= "="
expression_list
table_constructor
{ "{"
} "}"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "warn_on_missing_compiler"
= "="
expression_list
true "true"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "modnames"
= "="
expression_list
table_constructor
{ "{"
} "}"
for_statement (+536 nodes collapsed)
function_call
method_index_expression
identifier "target"
: ":"
identifier "write"
arguments
( "("
string
' "'"
string_content
escape_sequence "\\n"
' "'"
) ")"
function_call
method_index_expression
identifier "target"
: ":"
identifier "write"
arguments
( "("
function_call
dot_index_expression
identifier "table"
. "."
identifier "concat"
arguments
( "("
identifier "index_items"
) ")"
) ")"
function_call
method_index_expression
identifier "target"
: ":"
identifier "write"
arguments
( "("
string
' "'"
string_content
escape_sequence "\\n"
' "'"
) ")"
function_call
method_index_expression
identifier "target"
: ":"
identifier "close"
arguments
( "("
) ")"