1 | static LS tok_splitAtFirstSpacedDash(S s) {
|
2 | LS tok = javaTokWithAllBrackets(s); |
3 | final new Flag flag; |
4 | ret tok_combineCodeTokenRanges(tok, findNCNNonStreaks(tok, |
5 | func(LS tok) -> Bool {
|
6 | if (flag.isUp() || !tok_isSpacedDash(tok)) false; |
7 | ret true with flag.raise(); |
8 | })); |
9 | } |
Began life as a copy of #1018230
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019975 |
| Snippet name: | tok_splitAtFirstSpacedDash - returns actual CNC, honors brackets, sees all kinds of dashes |
| Eternal ID of this version: | #1019975/3 |
| Text MD5: | 4500188e407059c399ddb2aab7b42486 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-02 21:10:29 |
| Source code size: | 302 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 495 / 566 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |