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

Function consume_and_count_char

codegraph-kernel/grammars/lua/scanner.c:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static inline uint8_t consume_and_count_char(char c, TSLexer *lexer) {
30 uint8_t count = 0;
31 while (lexer->lookahead == c) {
32 ++count;
33 consume(lexer);
34 }
35 return count;
36}
37
38static inline void skip_whitespaces(TSLexer *lexer) {
39 while (iswspace(lexer->lookahead)) {

Callers 2

scan_block_startFunction · 0.85
scan_block_endFunction · 0.85

Calls 1

consumeFunction · 0.85

Tested by

no test coverage detected