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

Function define

lib/codemirror/mode/puppet/puppet.js:22–27  ·  view source on GitHub ↗
(style, string)

Source from the content-addressed store, hash-verified

20 // Takes a string of words separated by spaces and adds them as
21 // keys with the value of the first argument 'style'
22 function define(style, string) {
23 var split = string.split(' ');
24 for (var i = 0; i < split.length; i++) {
25 words[split[i]] = style;
26 }
27 }
28
29 // Takes commonly known puppet types/words and classifies them to a style
30 define('keyword', 'class define site node include import inherits');

Callers 8

puppet.jsFile · 0.70
perl.jsFile · 0.50
python.jsFile · 0.50
properties.jsFile · 0.50
php.jsFile · 0.50
pig.jsFile · 0.50
pascal.jsFile · 0.50
pegjs.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…