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

Function consumeOperator

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

Source from the content-addressed store, hash-verified

902}
903
904function consumeOperator(scanner: Scanner): string {
905 const source = scanner.source;
906 const start = scanner.index;
907 scanner.index += 1;
908 while (scanner.index < source.length && OPERATOR_CHARS.has(asChar(source, scanner.index))) {
909 scanner.index += 1;
910 }
911 return source.slice(start, scanner.index);
912}
913
914function classifyWord(
915 word: string,

Callers 1

tokenizeLineWithGrammarFunction · 0.85

Calls 2

asCharFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected