mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-30 15:36:59 +00:00
Wikirules now use better macrocall parser (#5451)
* wikirules now use better macrocall parser Before, wikirules would use a deficient macrocall parser which couldn't handle certain types of arguments. Now it uses the same one that the widget parser uses. Less code! * style changes and removing weird switch statement That switch statement made more sense in an earlier iteration. * comment improvements * oops, wikirule macrocalls could do ONE thing better * '=' wasn't allowed for widget macros, but why? Now they're allowed for both widget macros and macrocall macros.
This commit is contained in:
@@ -90,7 +90,7 @@ describe("HTML tag new parser tests", function() {
|
||||
{ type : 'macro-parameter', start : 0, value : 'one two three', end : 17 }
|
||||
);
|
||||
expect($tw.utils.parseMacroParameter("myparam>",0)).toEqual(
|
||||
{ type : 'macro-parameter', start : 0, value : 'myparam', end : 7 }
|
||||
{ type : 'macro-parameter', start : 0, value : 'myparam>', end : 8 }
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user