svoid tok_elegantVSInlined(LS tok) { for (int i : rjfindAll(tok, "elegant {")) { int iElegant = i+2; int iEndOfElegant = tok_scanBlock_idx(tok, iElegant); int iEnd = iEndOfElegant; S replacement; if (eqGet(tok, iEndOfElegant, "inlined")) { int iInlined = iEndOfElegant+2; int iEndOfInlined = iEnd = tok_scanBlock_idx(tok, iInlined+2); replacement = joinSubList(tok, iInlined+1, iEndOfInlined-2); } else replacement = joinSubList(tok, iElegant+1, iEndOfElegant-2); tokReplace_reTok(tok, i, iEnd-1, replacement); } }