MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / scan_word

Function scan_word

codegraph-kernel/grammars/scala/scanner.c:240–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240static bool scan_word(TSLexer *lexer, const char* const word) {
241 for (uint8_t i = 0; word[i] != '\0'; i++) {
242 if (lexer->lookahead != word[i]) {
243 return false;
244 }
245 advance(lexer);
246 }
247 return !iswalnum(lexer->lookahead);
248}
249
250// Returns true if the lookahead starts a leading infix operator — a symbolic
251// operator or back-ticked identifier followed by whitespace and then a

Calls 1

advanceFunction · 0.70

Tested by

no test coverage detected