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

Function consume_char

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

Source from the content-addressed store, hash-verified

18static inline void skip(TSLexer *lexer) { lexer->advance(lexer, true); }
19
20static inline bool consume_char(char c, TSLexer *lexer) {
21 if (lexer->lookahead != c) {
22 return false;
23 }
24
25 consume(lexer);
26 return true;
27}
28
29static inline uint8_t consume_and_count_char(char c, TSLexer *lexer) {
30 uint8_t count = 0;

Callers 3

scan_block_startFunction · 0.85
scan_block_endFunction · 0.85
scan_comment_startFunction · 0.85

Calls 1

consumeFunction · 0.85

Tested by

no test coverage detected