| 1 |
[ |
| 2 |
(repeat_stmt) |
| 3 |
(for_in_stmt) |
| 4 |
(for_range_stmt) |
| 5 |
(do_stmt) |
| 6 |
(while_stmt) |
| 7 |
(if_stmt) |
| 8 |
|
| 9 |
|
| 10 |
(fn_stmt) |
| 11 |
(local_fn_stmt) |
| 12 |
(anon_fn) |
| 13 |
(bindinglist) |
| 14 |
(varlist) |
| 15 |
(paramlist) |
| 16 |
(paramtypelist) |
| 17 |
(table) |
| 18 |
(cast) |
| 19 |
(tbtype) |
| 20 |
(dyntype) |
| 21 |
(bintype) |
| 22 |
(wraptype) |
| 23 |
(typepack) |
| 24 |
(attribute) |
| 25 |
(parattr) |
| 26 |
(littable) |
| 27 |
] @indent |
| 28 |
|
| 29 |
( |
| 30 |
[ |
| 31 |
(arglist) |
| 32 |
] @indent |
| 33 |
|
| 34 |
) |
| 35 |
|
| 36 |
( |
| 37 |
[ |
| 38 |
(explist) |
| 39 |
(interp_exp) |
| 40 |
] @indent.always |
| 41 |
|
| 42 |
) |
| 43 |
|
| 44 |
[ |
| 45 |
"until" |
| 46 |
"end" |
| 47 |
")" |
| 48 |
"}" |
| 49 |
"]" |
| 50 |
] @outdent |
| 51 |
|
| 52 |
[ |
| 53 |
(interp_brace_close) |
| 54 |
] @outdent.always |
| 55 |
|
| 56 |
(ret_stmt |
| 57 |
"return" @expr-start |
| 58 |
. |
| 59 |
(_) @indent |
| 60 |
(#not-same-line? @indent @expr-start) |
| 61 |
|
| 62 |
) |
| 63 |
|
| 64 |
(field |
| 65 |
"[" @expr-start |
| 66 |
. |
| 67 |
field_indexer: (_) @indent |
| 68 |
(#not-same-line? @expr-start @indent) |
| 69 |
|
| 70 |
) |
| 71 |
|
| 72 |
(_ |
| 73 |
(_) @expr-start |
| 74 |
. |
| 75 |
assign_symbol: _ @indent |
| 76 |
. |
| 77 |
(_) @expr-end |
| 78 |
(#not-same-line? @indent @expr-start) |
| 79 |
(#same-line? @expr-end @indent) |
| 80 |
|
| 81 |
) |
| 82 |
|
| 83 |
(_ |
| 84 |
(_) @expr-start |
| 85 |
. |
| 86 |
assign_symbol: _ @assign-sym |
| 87 |
. |
| 88 |
(_) @indent |
| 89 |
(#same-line? @expr-start @assign-sym) |
| 90 |
(#not-same-line? @assign-sym @indent) |
| 91 |
|
| 92 |
) |
| 93 |
|
| 94 |
(ifexp |
| 95 |
[ |
| 96 |
"if" |
| 97 |
"then" |
| 98 |
"elseif" |
| 99 |
"else" |
| 100 |
] @expr-start |
| 101 |
. |
| 102 |
(_) @indent.always |
| 103 |
|
| 104 |
(#not-same-line? @indent.always @expr-start) |
| 105 |
) |
| 106 |
|
| 107 |
(fntype |
| 108 |
(paramtypelist) @expr-start |
| 109 |
return_type: (_) @indent |
| 110 |
(#not-same-line? @expr-start @indent) |
| 111 |
|
| 112 |
) |
| 113 |
|
| 114 |
(exp_wrap |
| 115 |
(_) @expr-content |
| 116 |
(#not-same-line? @indent @expr-content) |
| 117 |
(#not-kind-eq? @expr-content "ifexp") |
| 118 |
) @indent |
| 119 |
|
| 120 |
(else_clause |
| 121 |
"else" @outdent |
| 122 |
) |
| 123 |
|
| 124 |
(elseif_clause |
| 125 |
"elseif" @outdent |
| 126 |
) |