From 412786c8dce80145068c368ad3a4adbcdc470433 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 2 May 2022 02:01:53 +0300 Subject: [PATCH] minor fix + notes... Signed-off-by: Alex A. Naanou --- pwiki2.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pwiki2.js b/pwiki2.js index ab3b1a3..487aa90 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -490,6 +490,7 @@ object.Constructor('BasePage', { //--------------------------------------------------------------------- // Parser... +// // needs: // STOP -- '\\>' or ')' // PREFIX -- 'inline' or 'elem' @@ -537,6 +538,7 @@ function(prefix='elem', stop='', regexp='smig'){ : pattern } +// // needs: // MACROS // INLINE_ARGS -- MACRO_ARGS.replace(/STOP/, ')') @@ -576,14 +578,16 @@ var countMacroPatternGroups = module.countMacroPatternGroups = function(){ // NOTE: the -2 here is to compensate for the leading and trailing ""'s... - return ''.split(module.buildMacroPattern()).length - 2) } + return ''.split(module.buildMacroPattern()).length - 2 } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// XXX should we warn about stuff like -- currently +// this will simply be ignored, i.e. passed trough the parser +// without change... -// XXX BUG? '' is parsed semi-wrong... var parser = module.parser = { // patterns...