This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit ed92272
committed
[[ Bug 21245 ]] SE indent errors with inline block comments
There are 2 related errors in the lineStripComments / __StripComment handlers in the revsecommoneditorbehavior.livecodescript code.
The first error is that "/*" is assumed to run to the end of the current line. Since it is possible to have multiple inline block comments on a single line, a recursive call to __StripBlockComment is used to remove these comments.
The second error is that the loop that goes through the current line does not exit when a true comment to the end of the line is encountered. The loop uses quotes to ensure that it isn't capturing comment characters in a string, but fails to exit. Added an additional return value (pass by reference variable) indicating comment status of the current chunk.1 parent 4436800 commit ed92272
2 files changed
Lines changed: 30 additions & 9 deletions
File tree
- Toolset/palettes/script editor/behaviors
- notes
Lines changed: 29 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
2614 | 2614 | | |
2615 | 2615 | | |
2616 | 2616 | | |
| 2617 | + | |
2617 | 2618 | | |
2618 | | - | |
| 2619 | + | |
2619 | 2620 | | |
2620 | 2621 | | |
| 2622 | + | |
2621 | 2623 | | |
2622 | | - | |
2623 | | - | |
2624 | | - | |
2625 | | - | |
2626 | | - | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
2627 | 2627 | | |
2628 | 2628 | | |
2629 | 2629 | | |
2630 | 2630 | | |
2631 | 2631 | | |
2632 | 2632 | | |
2633 | 2633 | | |
2634 | | - | |
| 2634 | + | |
2635 | 2635 | | |
2636 | | - | |
| 2636 | + | |
2637 | 2637 | | |
2638 | 2638 | | |
2639 | 2639 | | |
| 2640 | + | |
2640 | 2641 | | |
2641 | 2642 | | |
| 2643 | + | |
| 2644 | + | |
2642 | 2645 | | |
2643 | 2646 | | |
2644 | 2647 | | |
2645 | 2648 | | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
2646 | 2666 | | |
2647 | 2667 | | |
2648 | 2668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments