@@ -323,19 +323,19 @@ empty "$1" && {
323
323
transpile_sugar (){
324
324
while IFS=" " read -r line; do
325
325
stack_update " $line "
326
- [[ " $line " =~ ^(require ) ]] && continue
327
- [[ " $line " =~ (\$ [a-zA-Z_0-9]* \[ ) ]] && transpile_array_get " $line " && continue
328
- [[ " $line " =~ ^([ ]* for line from ) ]] && transpile_foreachline_from
8000
" $line " && continue
329
- [[ " $line " =~ ^([ ]* for ) ]] && transpile_for " $line " && continue
330
- [[ " $line " =~ ^([ ]* when done) ]] && transpile_when_done " $line " && continue
331
- [[ " $line " =~ (await .* then foreachline) ]] && transpile_then " $line " " pl" " pipe_each_line" && continue
332
- [[ " $line " =~ (await .* then \| ) ]] && transpile_then " $line " " p" " pipe" && continue
333
- [[ " $line " =~ (await .* then) ]] && transpile_then " $line " && continue
334
- [[ " $line " =~ ^([ ]* if ) ]] && transpile_if " $line " && continue
335
- [[ " $line " =~ ^([ ]* switch ) ]] && transpile_switch " $line " && continue
336
- [[ " $line " =~ ^([ ]* case ) ]] && transpile_case " $line " && continue
337
- [[ " $line " =~ ([a-zA-Z_0-9]\+ =) ]] && transpile_array_push " $line " && continue
338
- [[ " $line " =~ ^([a-zA-Z_0-9]* \( [a-zA-Z_0-9, ]* \) ) ]] && transpile_function " $line " && continue
326
+ [[ " $line " =~ ^(require ) ]] && continue
327
+ [[ " $line " =~ (\$ [a-zA-Z_0-9]* \[ ) ]] && transpile_array_get " $line " && continue
328
+ [[ " $line " =~ ^([ ]* for line from ) ]] && transpile_foreachline_from " $line " && continue
329
+ [[ " $line " =~ ^([ ]* for ) ]] && transpile_for " $line " && continue
330
+ [[ " $line " =~ ^([ ]* when done) ]] && transpile_when_done " $line " && continue
331
+ [[ " $line " =~ (await .* then for line) ]] && transpile_then " $line " " pl" " pipe_each_line" && continue
332
+ [[ " $line " =~ (await .* then \| ) ]] && transpile_then " $line " " p" " pipe" && continue
333
+ [[ " $line " =~ (await .* then) ]] && transpile_then " $line " && continue
334
+ [[ " $line " =~ ^([ ]* if ) ]] && transpile_if " $line " && continue
335
+ [[ " $line " =~ ^([ ]* switch ) ]] && transpile_switch " $line " && continue
336
+ [[ " $line " =~ ^([ ]* case ) ]] && transpile_case " $line " && continue
337
+ [[ " $line " =~ ([a-zA-Z_0-9]\+ =) ]] && transpile_array_push " $line " && continue
338
+ [[ " $line " =~ ^([a-zA-Z_0-9]* \( [a-zA-Z_0-9, ]* \) ) ]] && transpile_function " $line " && continue
339
339
echo " $line " | transpile_all
340
340
done < $1
341
341
stack_update " "
0 commit comments