@@ -15,7 +15,7 @@ function task(result, lines, index) {
1515 description : cleanup_1 . trimLeadingSpaces ( Match . task ( lines [ 0 ] ) )
1616 } ) ;
1717 index . task += 1 ;
18- var inCodeBlock = false ;
18+ var inExpCodeBlock = false ;
1919 var currentAction = null ;
2020 var bracketCount = 0 ;
2121 var i = 0 ;
@@ -27,23 +27,25 @@ function task(result, lines, index) {
2727 lines = import_1 . loadImport ( lines , importFile ) ;
2828 }
2929 else {
30- var finishedAction = ( bracketTracker ( line ) + bracketCount ) === 0 ;
31- if ( ! ! currentAction && ! finishedAction ) {
32- currentAction += line ;
33- bracketCount += bracketTracker ( line ) ;
34- }
35- else if ( ! ! currentAction ) {
36- currentAction += line ;
37- result = actions_1 . addToTasks ( result , currentAction , index ) ;
38- currentAction = null ;
39- bracketCount = 0 ;
30+ if ( ! ! currentAction ) {
31+ var finishedAction = ( bracketTracker ( line ) + bracketCount ) === 0 ;
32+ if ( ! finishedAction ) {
33+ currentAction += line + '\n' ;
34+ bracketCount += bracketTracker ( line ) ;
35+ }
36+ else {
37+ currentAction += line ;
38+ result = actions_1 . addToTasks ( result , currentAction , index ) ;
39+ currentAction = null ;
40+ bracketCount = 0 ;
41+ }
4042 }
4143 else {
4244 var isAction = Match . isAction ( line ) ;
4345 if ( ! isAction && ! ! Match . codeBlock ( line ) ) {
44- inCodeBlock = ! inCodeBlock ;
46+ inExpCodeBlock = ! inExpCodeBlock ;
4547 }
46- if ( ! inCodeBlock ) {
48+ if ( ! inExpCodeBlock ) {
4749 if ( ! ! isAction ) {
4850 currentAction = line ;
4951 bracketCount = bracketTracker ( line ) ;
0 commit comments