(pluginName, cmdStyle, styles)
| 52 | } |
| 53 | |
| 54 | function addPluginPattern(pluginName, cmdStyle, styles) { |
| 55 | return function () { |
| 56 | this.name = pluginName; |
| 57 | this.bracketNo = 0; |
| 58 | this.style = cmdStyle; |
| 59 | this.styles = styles; |
| 60 | this.argument = null; // \begin and \end have arguments that follow. These are stored in the plugin |
| 61 | |
| 62 | this.styleIdentifier = function() { |
| 63 | return this.styles[this.bracketNo - 1] || null; |
| 64 | }; |
| 65 | this.openBracket = function() { |
| 66 | this.bracketNo++; |
| 67 | return "bracket"; |
| 68 | }; |
| 69 | this.closeBracket = function() {}; |
| 70 | }; |
| 71 | } |
| 72 | |
| 73 | var plugins = {}; |
| 74 |
no outgoing calls
no test coverage detected
searching dependent graphs…