MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / firstNonWS

Function firstNonWS

docs/components/editor.js:59–59  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

57 return { start, end, body: text.slice(start, end), col: caret - start };
58 };
59 const firstNonWS = (s) => { for (let i = 0; i < s.length; i++) if (!WS.test(s[i])) return i; return s.length; };
60
61 // `prevIndentTabStop`, distance to the previous tab stop from `col`.
62 const prevTabDist = (col) => { const r = col % TAB_SIZE; return r === 0 ? TAB_SIZE : r; };

Callers 1

createEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected