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

Function scan_for_word

codegraph-kernel/grammars/kotlin/scanner.c:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239static bool scan_for_word(TSLexer *lexer, const char* word, unsigned len) {
240 skip(lexer);
241 for (unsigned i = 0; i < len; ++i) {
242 if (lexer->lookahead != word[i]) return false;
243 skip(lexer);
244 }
245 return true;
246}
247
248static bool scan_automatic_semicolon(TSLexer *lexer) {
249 lexer->result_symbol = AUTOMATIC_SEMICOLON;

Callers 2

scan_automatic_semicolonFunction · 0.85

Calls 1

skipFunction · 0.70

Tested by

no test coverage detected