Fixed problem with greedy regexp for macrocalls

It was preventing this from working:

```
<<macro>><<bacrp>><<sdf>><<qweqwe>>
```
This commit is contained in:
Jermolene
2013-11-17 21:53:12 +00:00
parent 29c0f7156b
commit 3b35d7dfe4
2 changed files with 10 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ exports.types = {block: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /<<([^\s>]+)\s*([\s\S]*?)>>(?:\r?\n|$)/mg;
this.matchRegExp = /<<([^>\s]+)(?:\s*)((?:[^>]|(?:>(?!>)))*?)>>(?:\r?\n|$)/mg;
};
/*