MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / isWordStart

Function isWordStart

packages/core/src/widgets/codeEditorSyntax.ts:805–807  ·  view source on GitHub ↗
(ch: string)

Source from the content-addressed store, hash-verified

803}
804
805function isWordStart(ch: string): boolean {
806 return (ch >= "a" && ch <= "z") || (ch >= "A" && ch <= "Z") || ch === "_" || ch === "$";
807}
808
809function isWordPart(ch: string): boolean {
810 return isWordStart(ch) || (ch >= "0" && ch <= "9");

Callers 2

isWordPartFunction · 0.70
tokenizeLineWithGrammarFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected