Allow ")" to be part of pragmas default values

by editing matchRegExp in wiki pragma rules for
macro, parameters, function, procedure and widget definitions
This commit is contained in:
Xavier Cazin 2023-10-01 19:06:09 +02:00
parent 116e6d55a2
commit df4dfc5a9e
3 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ Instantiate parse rule
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\\(function|procedure|widget)\s+([^(\s]+)\((\s*([^)]*))?\)(\s*\r?\n)?/mg;
this.matchRegExp = /\\(function|procedure|widget)\s+([^(\s]+)\((\s*(.*))\)(\s*\r?\n)?/mg;
};
/*
@ -94,4 +94,4 @@ exports.parse = function() {
};
})();

View File

@ -27,7 +27,7 @@ Instantiate parse rule
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\\define\s+([^(\s]+)\(\s*([^)]*)\)(\s*\r?\n)?/mg;
this.matchRegExp = /\\define\s+([^(\s]+)\(\s*(.*)\)(\s*\r?\n)?/mg;
};
/*

View File

@ -26,7 +26,7 @@ Instantiate parse rule
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /\\parameters\s*\(([^)]*)\)(\s*\r?\n)?/mg;
this.matchRegExp = /\\parameters\s*\((.*)\)(\s*\r?\n)?/mg;
};
/*