MCPcopy Create free account
hub / github.com/bathos/Ecmascript-Sublime / insert_rules

Function insert_rules

nested/src/modify-ecmascript.js:126–126  ·  view source on GitHub ↗
(z_inserts, i_insert)

Source from the content-addressed store, hash-verified

124 const match_replace = (r_find, s_replace) => g_rule => g_rule.match = g_rule.match.replace(r_find, s_replace);
125
126 const insert_rules = (z_inserts, i_insert) => a_rules => a_rules.splice(i_insert, 0, ...(yaml_load(z_inserts)).map(yaml_load));
127
128 const captures = (i_group, si_scope) => `$.contexts..*[?(@.captures["${i_group}"]=="${si_scope}")]`;
129 const scope_equals = si_scope => `$.contexts..*[?(@.scope=="${si_scope}")]`;

Callers 1

Calls 1

yaml_loadFunction · 0.85

Tested by

no test coverage detected