(matcher)
| 9 | }; |
| 10 | |
| 11 | const explicit = (matcher) => (text, position) => { |
| 12 | const previous = text[position - 1]; |
| 13 | |
| 14 | if (previous && !previous.match(/[\s.,([{!?\-=]/)) { |
| 15 | return null; |
| 16 | } |
| 17 | |
| 18 | return matcher(text, position); |
| 19 | }; |
| 20 | |
| 21 | const topline = (matcher) => (text, position) => { |
| 22 | if (position > 0 && text.charAt(position - 1) !== '\n') { |