1 | static void tok_autosemi(L<S> tok) { |
2 | int i; |
3 | while ( |
4 | (i = jfind(tok, "autosemi {")) >= 0 |
5 | || (i = jfind(tok, "semiauto {")) >= 0) { |
6 | int closing = findEndOfBlock(tok, i+2)-1; |
7 | tok.set(i, ""); // remove autosemi keyword |
8 | tok.set(i+1, ""); |
9 | for (int j = i+5; j < closing; j += 2) |
10 | if (containsNewLine(tok.get(j)) |
11 | && neqOneOf(tok.get(j-1), "{", "}", ";")) |
12 | tok.set(j-1, tok.get(j-1) + ";"); |
13 | reTok(tok, i, closing); |
14 | } |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008965 |
Snippet name: | tok_autosemi |
Eternal ID of this version: | #1008965/4 |
Text MD5: | 23634fff5b1436f249d637772d07c2c5 |
Author: | stefan |
Category: | javax / preprocessing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-20 04:33:43 |
Source code size: | 475 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 481 / 561 |
Version history: | 3 change(s) |
Referenced in: | [show references] |