diff --git a/v3/pwiki/parser.js b/v3/pwiki/parser.js index 45a5349..f38ffc2 100644 --- a/v3/pwiki/parser.js +++ b/v3/pwiki/parser.js @@ -837,11 +837,11 @@ module.BaseParser = { .push(elem.resolving instanceof Promise ? elem.resolving : elem) - //*/ // NOTE: we do not need to expand .body attributes as these // are the responsibility of the respective macros... elems.push(elem) } + // global .wait... if(unresolved.length > 0){ var resolving = state.wait = @@ -1032,7 +1032,8 @@ module.parser = { return Promise.awaitOrRun( state.waitNested, function(){ - console.log(' --', ...Object.keys(args), body ?? '') }) }, + console.log(' --', ...Object.keys(args), body ?? '') + return Object.keys(args) }) }, //*/ // Filter... diff --git a/v3/pwiki/test/parser.js b/v3/pwiki/test/parser.js index 01caa00..aea9f60 100755 --- a/v3/pwiki/test/parser.js +++ b/v3/pwiki/test/parser.js @@ -449,6 +449,13 @@ test.Setups({ 'local @include(/async/page)', 'LOCAL Page' ]} }, + + sequencing: function(assert){ + return { + page: P, + code: [ + 'A @include(/async/page) B @include(/page) C', + 'A Page B Page C' ]} }, })