(rules)
| 2792 | }); |
| 2793 | |
| 2794 | function createMatcherSuffixesRule(rules) { |
| 2795 | var matcherSuffix = lop.rules.firstOf.apply( |
| 2796 | lop.rules.firstOf, |
| 2797 | ["matcher suffix"].concat(rules) |
| 2798 | ); |
| 2799 | var matcherSuffixes = lop.rules.zeroOrMore(matcherSuffix); |
| 2800 | return lop.rules.then(matcherSuffixes, function(suffixes) { |
| 2801 | var matcherOptions = {}; |
| 2802 | suffixes.forEach(function(suffix) { |
| 2803 | _.extend(matcherOptions, suffix); |
| 2804 | }); |
| 2805 | return matcherOptions; |
| 2806 | }); |
| 2807 | } |
| 2808 | |
| 2809 | var paragraphOrRun = sequence( |
| 2810 | sequence.capture(elementTypeRule), |
no test coverage detected