tiny fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-05-03 00:01:30 +03:00
parent eb6fc8819c
commit 8128c9b025

View File

@ -522,7 +522,7 @@ module.BaseParser = {
// final string... // final string...
MACRO_ARGS: ['(\\s*(',[ MACRO_ARGS: ['(\\s*(',[
// arg='val' | arg="val" | arg=val // arg='val' | arg="val" | arg=val
'(?<PREFIXArgName>[a-z]+)\\s*=\\s*(?<PREFIXArgValue>'+([ '(?<PREFIXArgName>[a-z-]+)\\s*=\\s*(?<PREFIXArgValue>'+([
// XXX CHROME/NODE BUG: this does not work yet... // XXX CHROME/NODE BUG: this does not work yet...
//'\\s+(?<quote>[\'"])[^\\k<quote>]*\\k<quote>', //'\\s+(?<quote>[\'"])[^\\k<quote>]*\\k<quote>',
"'(?<PREFIXSingleQuotedValue>[^']*)'", "'(?<PREFIXSingleQuotedValue>[^']*)'",
@ -1115,6 +1115,7 @@ object.Constructor('Page', BasePage, {
// macro with one exception, when used in quote, the body is // macro with one exception, when used in quote, the body is
// not expanded... // not expanded...
// //
// XXX can we set default quote filters???
// XXX need a way to escape macros... // XXX need a way to escape macros...
quote: function(args, body, state){ quote: function(args, body, state){
var src = args.src //|| args[0] var src = args.src //|| args[0]