MCPcopy
hub / github.com/pandao/editor.md / addPluginPattern

Function addPluginPattern

lib/codemirror/mode/stex/stex.js:54–71  ·  view source on GitHub ↗
(pluginName, cmdStyle, styles)

Source from the content-addressed store, hash-verified

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

Callers 1

stex.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…