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

Function consumeWord

packages/core/src/widgets/codeEditorSyntax.ts:825–832  ·  view source on GitHub ↗
(scanner: Scanner)

Source from the content-addressed store, hash-verified

823}
824
825function consumeWord(scanner: Scanner): string {
826 const start = scanner.index;
827 scanner.index += 1;
828 while (isWordPart(asChar(scanner.source, scanner.index))) {
829 scanner.index += 1;
830 }
831 return scanner.source.slice(start, scanner.index);
832}
833
834function consumeNumber(scanner: Scanner): string {
835 const source = scanner.source;

Callers 1

tokenizeLineWithGrammarFunction · 0.85

Calls 2

asCharFunction · 0.85
isWordPartFunction · 0.70

Tested by

no test coverage detected