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

…lines 1–17 unchanged (17 lines)
18
19 --DOC_HIDE_START
20 l:add(wibox.widget {
21 pb,
22 {
23 text = color[1] and '"'..color[1]..'"' or "nil",
24 align = "center",
25 widget = wibox.widget.textbox,
26 },
27 forced_height = 30,
28 forced_width = 75,
29 layout = wibox.layout.stack
30 })
…lines 31–37 unchanged (7 lines)

After

…lines 1–17 unchanged (17 lines)
18
19 --DOC_HIDE_START
20 l:add(wibox.widget {
21 pb,
22 {
23 text = color[1] and '"'..color[1]..'"' or "nil",
24 halign = "center",
25 widget = wibox.widget.textbox,
26 },
27 forced_height = 30,
28 forced_width = 75,
29 layout = wibox.layout.stack
30 })
…lines 31–37 unchanged (7 lines)

Before

chunk
comment
-- "--"
comment_content "DOC_GEN_IMAGE --DOC_HIDE_START"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "parent"
= "="
expression_list
vararg_expression "..."
variable_declaration
local "local"
assignment_statement
variable_list
identifier "wibox"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "wibox"
" "\""
) ")"
variable_declaration (+21 nodes collapsed)
assignment_statement
variable_list
dot_index_expression
identifier "l"
. "."
identifier "spacing"
= "="
expression_list
number "5"
comment
-- "--"
comment_content "DOC_HIDE_END"
for_statement
for "for"
for_generic_clause (+49 nodes collapsed)
do "do"
block
variable_declaration (+49 nodes collapsed)
comment
-- "--"
comment_content "DOC_HIDE_START"
function_call
method_index_expression
identifier "l"
: ":"
identifier "add"
arguments
( "("
function_call
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
arguments
table_constructor
{ "{"
field
identifier "pb"
, ","
field
table_constructor
{ "{"
field (+33 nodes collapsed)
, ","
field
identifier "align"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
. "."
identifier "textbox"
, ","
} "}"
, ","
field
identifier "forced_height"
= "="
number "30"
, ","
field
identifier "forced_width"
= "="
number "75"
, ","
field
identifier "layout"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "layout"
. "."
identifier "stack"
} "}"
) ")"
comment
-- "--"
comment_content "DOC_HIDE_END"
end "end"
function_call
method_index_expression
identifier "parent"
: ":"
identifier "add"
arguments
( "("
identifier "l"
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
comment
-- "--"
comment_content "DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:"...

After

chunk
comment
-- "--"
comment_content "DOC_GEN_IMAGE --DOC_HIDE_START"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "parent"
= "="
expression_list
vararg_expression "..."
variable_declaration
local "local"
assignment_statement
variable_list
identifier "wibox"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "wibox"
" "\""
) ")"
variable_declaration (+21 nodes collapsed)
assignment_statement
variable_list
dot_index_expression
identifier "l"
. "."
identifier "spacing"
= "="
expression_list
number "5"
comment
-- "--"
comment_content "DOC_HIDE_END"
for_statement
for "for"
for_generic_clause (+49 nodes collapsed)
do "do"
block
variable_declaration (+49 nodes collapsed)
comment
-- "--"
comment_content "DOC_HIDE_START"
function_call
method_index_expression
identifier "l"
: ":"
identifier "add"
arguments
( "("
function_call
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
arguments
table_constructor
{ "{"
field
identifier "pb"
, ","
field
table_constructor
{ "{"
field (+33 nodes collapsed)
, ","
field
identifier "halign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
. "."
identifier "textbox"
, ","
} "}"
, ","
field
identifier "forced_height"
= "="
number "30"
, ","
field
identifier "forced_width"
= "="
number "75"
, ","
field
identifier "layout"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "layout"
. "."
identifier "stack"
} "}"
) ")"
comment
-- "--"
comment_content "DOC_HIDE_END"
end "end"
function_call
method_index_expression
identifier "parent"
: ":"
identifier "add"
arguments
( "("
identifier "l"
) ")"
comment
-- "--"
comment_content "DOC_HIDE"
comment
-- "--"
comment_content "DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:"...