MCPcopy
hub / github.com/agentejo/cockpit / define

Function define

assets/lib/codemirror/mode/sas/sas.js:51–58  ·  view source on GitHub ↗
(style, string, context)

Source from the content-addressed store, hash-verified

49 // Takes a string of words separated by spaces and adds them as
50 // keys with the value of the first argument 'style'
51 function define(style, string, context) {
52 if (context) {
53 var split = string.split(' ');
54 for (var i = 0; i < split.length; i++) {
55 words[split[i]] = {style: style, state: context};
56 }
57 }
58 }
59 //datastep
60 define('def', 'stack pgm view source debug nesting nolist', ['inDataStep']);
61 define('def', 'if while until for do do; end end; then else cancel', ['inDataStep']);

Callers 15

sas.jsFile · 0.70
api.jsFile · 0.50
storage.jsFile · 0.50
diff.jsFile · 0.50
i18n.jsFile · 0.50
uppie.jsFile · 0.50
jquery.jsFile · 0.50
fuzzypathsearch.jsFile · 0.50
marked.jsFile · 0.50
papaparse.jsFile · 0.50
lodash.jsFile · 0.50
moment.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected